How to create a water tank?

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.
Locked
vincentff7zg
Posts: 2
Joined: Fri Apr 30, 2010 4:05 am

How to create a water tank?

Post 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? :?:
Scarabol
Posts: 167
Joined: Sat Jan 03, 2009 5:26 pm
Location: Aachen, Germany

Post by Scarabol »

Well do you have some code for us?

That would it make very easy to help and try.

MfG
Scarabol
Irrlicht 1.7.2
Eclipse
Boost
1k1
Posts: 3
Joined: Tue Apr 27, 2010 4:06 pm

Post 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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

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