Loading a world

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Loading a world

Post 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?
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post 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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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!
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Do you else know to load only within an radius from your position from a file?
TheC
Posts: 93
Joined: Fri May 05, 2006 7:50 am

Post 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.
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Yes thats what i was doing. But i thought there was a better idea or way for it :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I think there is a tutorial for seamless worlds in the tutorials section which could help.
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Yes i see, but i come on blog or somting and can't find any information i search for...
vegeta
Posts: 12
Joined: Fri May 12, 2006 4:56 pm
Location: the netherlands

Post 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?
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

no i tryed
mR.haHN
Posts: 49
Joined: Wed May 03, 2006 5:37 pm

Post by mR.haHN »

Have You tried what vegeta said , with your landscape as an Octree Mesh?
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Yes i have, it render less poly's but that is only 20 poly's he doesn't render
Post Reply