Terrain lower LOD

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
Slaine
Posts: 120
Joined: Fri May 04, 2007 12:28 pm

Terrain lower LOD

Post by Slaine »

Hi There, is there anyway to setup the geo terrain scene node so that when the camera is very far away it lowers the level of detail further, seems a waist that the lod remains at a set detail even though the camera is killometres away?

The reason I ask is that I am using a tiled version of the Irrlicht terrain and it isn't running fast, I'm guessing it's to do with the tiles in the distance having so many pols.

Many Thanks.
porcus
Posts: 149
Joined: Sun May 27, 2007 6:24 pm
Location: Germany

Post by porcus »

Maybe you need this?:

Code: Select all

virtual bool 	overrideLODDistance (s32 LOD, f64 newDistance)=0
http://irrlicht.sourceforge.net/docu/cl ... _node.html
Slaine
Posts: 120
Joined: Fri May 04, 2007 12:28 pm

Post by Slaine »

porcus wrote:Maybe you need this?:

Code: Select all

virtual bool 	overrideLODDistance (s32 LOD, f64 newDistance)=0
http://irrlicht.sourceforge.net/docu/cl ... _node.html
I did try this but there seems to be a set lowest setting for the terrain, I was perhaps refering to lowering the detail so that say the terrain is 1km away from the camera, i.e. about 3x3 pixels on screen then only 8 vertex are used? Can you do that?
porcus
Posts: 149
Joined: Sun May 27, 2007 6:24 pm
Location: Germany

Post by porcus »

I would create a mesh with 8 or whatever vertices out of the heightmap and
make the terrainscenenode invisible and the other node visible if the
distance between camera and terrainscenenode is too big.

Maybe you could find another solution if you take a look into irrlicht's source
but I think this would be too time-consuming.
Post Reply