Real-time terrain modification

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
larztheloser
Posts: 13
Joined: Thu Oct 08, 2009 8:58 pm
Location: New Zealand

Real-time terrain modification

Post by larztheloser »

Hi all,
I bet this has been answered somewhere (can't find it), but is it possible to modify a terrain (without reloading it from scratch) in real time? Specifically, I want to change the height of a terrain if, for example, a cannonball hits it.
Thanks!
Serg88
Posts: 30
Joined: Mon Oct 19, 2009 5:52 pm
Location: Moscow/Russia

Post by Serg88 »

try to use IDynamicMashBuffer::getVertexBuffer(); and get ivertex buffer with core::vector3df pos = vertex.Pos can get and modify data, also see declaration of this method in class_list(in tutorial) also idynamic mash used in tutorial12,you can see how use this class. Also try iMashManipulator its use transformation matrix. I hope it will help you.
from Russia with love :))))
larztheloser
Posts: 13
Joined: Thu Oct 08, 2009 8:58 pm
Location: New Zealand

Post by larztheloser »

Thanks! Will try.
Post Reply