Modify Terrain

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
Donner
Posts: 87
Joined: Fri May 18, 2007 11:27 am

Modify Terrain

Post by Donner »

Hey,

right now I'm working on a custom editable terrain scene node based in the CTerrainSceneNode Irrlicht comes with.
Well, I'm having a little trouble understanding how the Mesh is actually being rendered.

I understand there is a CTerrainSceneNode::RenderBuffer, the mesh buffer that actually is being rendered.
And then there is the CTerrainSceneNode::Mesh, that can contain multiple mesh buffers itself.

1. Is any meshbuffer contained by mesh relevant, other than the one with the id 0? So when for example I want to update the vertex color of every vertex of my terrain, do I have to go through all the mesh buffers or just the first one?
2. If I'm done with my changes, how do i make sure the changes are being applied to all the LODs and the render buffer?

Thanks in advance,
D.
Post Reply