Heightmap terrain data

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
wartech0
Posts: 2
Joined: Mon Feb 01, 2010 12:26 pm

Heightmap terrain data

Post 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.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Re: Heightmap terrain data

Post 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:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
pwierz
Posts: 59
Joined: Sun Aug 20, 2006 3:32 pm

Post by pwierz »

Here's a thread that should help get you going:

http://irrlicht.sourceforge.net/phpBB2/ ... highlight=
wartech0
Posts: 2
Joined: Mon Feb 01, 2010 12:26 pm

Post 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.
Post Reply