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