Page 1 of 1

Heightmap terrain data

Posted: Mon Feb 01, 2010 12:29 pm
by wartech0
Is there anyway I can access height map data. The tutorial doesn't go into any detail on how to change the data. I have looked around the forum and all I see is how to get the data and not change it.

Re: Heightmap terrain data

Posted: Mon Feb 01, 2010 1:28 pm
by Acki
wartech0 wrote:all I see is how to get the data and not change it.
if you got the data you can change the data... :lol:

Posted: Mon Feb 01, 2010 2:11 pm
by pwierz
Here's a thread that should help get you going:

http://irrlicht.sourceforge.net/phpBB2/ ... highlight=

Posted: Mon Feb 01, 2010 2:46 pm
by wartech0
I have tried

Code: Select all

   scene::IMesh* buffer = terrain->getMesh();
   video::S3DVertex2TCoords* data = (video::S3DVertex2TCoords*)buffer->getMeshBuffer(0)->getVertices(); 
Every time I do my program does not work with that in it any suggestions?
It is specifically that code right there too because everything stops working when those 2 lines are added.
The program just freezes doesn't draw anything and throws it into debug.