I have a ~50K triangle quake bsp map i'm loading and it runs at 70 FPS regardless of whether i'm out in space or have the entire map in my view, also regardless of whether I use the regular sceneNode or the octree version....
As a side note, irrlicht doesn't handle xonotic map files out of the box... the shader/texture name rules are slightly different than cononical quake3 style so irrlicht is a little broken ...
I've fixed it to the point all diffuse show up (nothing was showing up at all before) -- but lightmaps aren't applied.
My main concern is the low framerate though..
Also, the "culled" variable always shows 0 unless i fly outside the maps bounds and look out, then it shows 1.
Possible glitch with octrees?
Re: Possible glitch with octrees?
I've seen your bug-reports there, but I've never been too deep into the implementation of octrees. What I can tell you is that in my experiments I got often better results when I started playing around with the defines in Octree.h.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Possible glitch with octrees?
I've tried OCTREE_USE_HARDWARE ... I'm convinced that anything less than PVS/portals/occlusion is just too slow. Frustum culling, even in theory, is too slow. Like I said, if you're in a huge map - just looking at a wall - to the other side... It *should* be fast, because you're only looking at like a few polys, but obviously your frustum is FULL of a huge amount of triangles so with frustum culling it will be painfully slow.
I really wish irrlicht/ogre had this. It should probably be submitted as a feature request
I bet if there were some effort, it wouldn't be *too* hard as it could mainly be ripped from quake.
I really wish irrlicht/ogre had this. It should probably be submitted as a feature request
I bet if there were some effort, it wouldn't be *too* hard as it could mainly be ripped from quake.
Re: Possible glitch with octrees?
Quake has unfortunately an incompatible license, so we can't use their code.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Possible glitch with octrees?
I think Ogre has PVS, and even the (now almost dead?) Irrlicht spawn Lightfeather had some stuff for this. No-one ever approached it for Irrlicht, though. But you might find some suiting code in Lightfeather which could be rather simple to port back to Irrlicht.
Locking this topic to avoid two thread runnin gon the same topic. Please use the one in Open Discussion
Locking this topic to avoid two thread runnin gon the same topic. Please use the one in Open Discussion