I'm back again
Special "hi" to JP, because he always answers my questions
Now I have another question
Is it possible to create a mesh in Irrlicht based on an heightmap?
Again there's my problem with the water in my terrain. As you know, I have a matrix for my terrain, where stands an 1 for "water" and a 0 for "no water".
I created a heightmap out of it and redered the points in arras Tiled Terrain demo.
But how is it possible to tell Irrlicht to take it as a mesh and not a terrain? I know terrain is nothing but a mesh, but if I want to apply
Code: Select all
node = smgr->addWaterSurfaceSceneNode(mesh->getMesh(0), 3.0f, 300.0f, 30.0f);So the basic question is: Is it possible to take arras TerrainNode as a mesh?
My plan b:
I had an idea about
and put it into an if loop:smgr->addHillPlaneMesh
something like:
Code: Select all
if(water=1)
{
addHillPlaneMesh("mywater,(10,10),(100,100),0,10,??,(40,40))
}
else if(water=0)
{
addHillPlaneMesh("mywater,(10,10),(100,100),0,0,??,(40,40))
}
Another idea is the do something like:
Code: Select all
for(i=0, i<PointCount,i++)
{
addHillPlaneMesh("mywater,(10,10),(100,100),0,water[i],??,(40,40))
}Thank you!
Regards,
JRS
