Page 1 of 1

How to create a water tank?

Posted: Fri Apr 30, 2010 4:13 am
by vincentff7zg
I want to create a water tank.The shape of tank can be different.
I want to input watersurfacenode to present water's surface in the tank, and when I change the posture of the tank,the surface will change too.

However,when I try to use watersurfacenode,I find that the mesh can't change its contour according to the 3d tank's posture automatically.The contour of the mesh is constant after defined,and the watersurface will spread out of the tank.

Can I change the contour of the mesh according to the posture of the tank? :?:

Posted: Fri Apr 30, 2010 5:21 am
by Scarabol
Well do you have some code for us?

That would it make very easy to help and try.

MfG
Scarabol

Posted: Fri Apr 30, 2010 5:28 am
by 1k1
Cant you set the shape of water mesh?
Oh, Irrlicht is even more dumb and limitated than I tought!

Well, theoretically there is no problem with changing the shape of water surface... you have to create triangle shape that will cap your tank and apply the water shader to it.

Posted: Fri Apr 30, 2010 8:18 am
by hybrid
Well, Irrlicht can do this, it's just a matter of coding it correctly. However, this was already answered in the other thread, so this one's closed. Try to avoid cross-posting.