Hello everybody. I was wondering on how to make and render a really big map.
I'm not going to use the TerrainSceneNode but a simple mesh for the terrain. The problem is all the amount of objects (trees, houses, stuffs, etc) contained in the map.
I was thinking about making two (or three) versions of each object (from hi-poly to low-poly) loading low poly models for far objects.
Any suggestion?
managing huge map
Your plans for LOD (level of detail) for the meshes is a good one.
There are other options for rendering large terrains well, you could use Arras' tiled terrain scene node which apparently renders large terrains very well, there's also some other attempts at achieving this, all should be able to be found in the projects forum.
Nadro has also, just today, posted his first version of occlusion culling for irrlicht (no source yet) which could improve performance for large maps (though may not be as useful for large open maps as it would be for enclosed maps), so that could be something to keep an eye on.
There are other options for rendering large terrains well, you could use Arras' tiled terrain scene node which apparently renders large terrains very well, there's also some other attempts at achieving this, all should be able to be found in the projects forum.
Nadro has also, just today, posted his first version of occlusion culling for irrlicht (no source yet) which could improve performance for large maps (though may not be as useful for large open maps as it would be for enclosed maps), so that could be something to keep an eye on.
Checking every frame could be a bit much if you've got lots of objects to check i suppose... You could probably get away with doing it every few frames, maybe even 10 or 20 frames or so depending on how quickly you're moving (though time based would probably be better so it's not reliant on the framerate). And you could probably split up the objects so one frame you check the first X objects, then the next frame you check the next X objects and so on...
-
- Posts: 26
- Joined: Sun Jan 21, 2007 9:11 pm
Just like my terrain engine ^^
I guess it would be much easier to use a terrain Scene Node to do so, because a mesh is an unique entity and if you load the whole huge mesh at once you are going to have a really large amount of ram full and your render will be slow. You should split the map into small regions and load them when you are close, once you get far from it you just remove it.
I guess it would be much easier to use a terrain Scene Node to do so, because a mesh is an unique entity and if you load the whole huge mesh at once you are going to have a really large amount of ram full and your render will be slow. You should split the map into small regions and load them when you are close, once you get far from it you just remove it.
Irrlicht 4ever.
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
billboard
I'm more an artist, so polycount stuff is my thing. You could probably even do a billboard imposter system for when it's REALLY far away but still in veiw.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar