IWaterSurfaceSceneNode .. any suggestions ?

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
mmh771
Posts: 39
Joined: Thu Apr 27, 2006 7:02 am

IWaterSurfaceSceneNode .. any suggestions ?

Post 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
Elise
Posts: 48
Joined: Tue Jul 19, 2005 6:30 am
Contact:

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