Page 1 of 1

Loading a world

Posted: Thu May 18, 2006 6:11 pm
by Strong99
I want to load a full map in my game... but the map is very big, i have created several modules to load every segment of the map. i have 7 * 5 modules of 5000*5000 px that are 35 modules, but is there a way to load the full map en only shows the polys in arange of 6000*6000 px?? instead of showing/loading the whole map in one time?

I mean in the terrain rendering tutorial from picture the polys you don't see are removed to a lower resolution. How to do that with an .my3d or .x model?

Posted: Fri May 19, 2006 2:30 pm
by Strong99
When you select the 12.TerrainRendering tutorial and play it with wireframe, you will see that the polys in the distance change in bigger poly so the computer don't have to render al those polys etc..
Now was mine question how to do that with a .3ds/.x etc model. Beause if you use that the levels can increae enormous.

Posted: Fri May 19, 2006 2:34 pm
by hybrid
There is currently no LOD in Irrlicht for scene nodes other than terrain. You'd have to implement in on your own, though probably many people would help you out at some point because they really want to have it in Irrlicht!

Posted: Fri May 19, 2006 3:02 pm
by Strong99
Do you else know to load only within an radius from your position from a file?

Posted: Fri May 19, 2006 3:19 pm
by TheC
load them all to RAM at the start, then hide all of them except the one you are on, and the 8 surrounding ones, as you move to one of them, hide the furthest, and show the next set.

Posted: Fri May 19, 2006 3:34 pm
by Strong99
Yes thats what i was doing. But i thought there was a better idea or way for it :)

Posted: Fri May 19, 2006 7:06 pm
by hybrid
I think there is a tutorial for seamless worlds in the tutorials section which could help.

Posted: Fri May 19, 2006 7:22 pm
by Strong99
Yes i see, but i come on blog or somting and can't find any information i search for...

Posted: Sun May 21, 2006 3:50 am
by vegeta
doesn't it work with a big sphere model that follows the player so that it doesn't render the poly's behind it?

Posted: Sun May 21, 2006 7:37 am
by Strong99
no i tryed

Posted: Sun May 21, 2006 8:02 am
by mR.haHN
Have You tried what vegeta said , with your landscape as an Octree Mesh?

Posted: Sun May 21, 2006 1:52 pm
by Strong99
Yes i have, it render less poly's but that is only 20 poly's he doesn't render