Page 1 of 1

IWaterSurfaceSceneNode .. any suggestions ?

Posted: Thu May 11, 2006 6:22 pm
by mmh771
Guys ...

I've just added a water surface scene node to my scene, which contains a "*.my3d" Terrain, and a just raised its position along the Y-axis to cover the bottom of the terrain ....

i have 2 questions here:

1. when i created it, it says that i have to write an IMesh object as my first argument! .. so i just use a HUGE big thin box, and actually it does the work, but is it a good practise? or should i use a specific IMesh ?

2. the edges where the WaterSurfaceSceneNode touche the terrain, it looks really unsmooth! .. just like a big triangles, if you got what i mean! .. so what shall i do to smooth it!

Thanks all

Posted: Thu May 11, 2006 6:33 pm
by Elise
1. Box works I guess, or you can do what there's in one of the tutorials:

Code: Select all

mesh = smgr->addHillPlaneMesh("myHill",
   core::dimension2d<f32>(20,20),
   core::dimension2d<s32>(40,40), 0, 0,
   core::dimension2d<f32>(0,0),
   core::dimension2d<f32>(10,10));

node = smgr->addWaterSurfaceSceneNode(mesh->getMesh(0), 3.0f, 300.0f, 30.0f);
2. Sorry not sure what you mean with this... maybe not enough triangles in the water mesh? Try the above code, or post a screenie if that doesn't work.