How to create a water tank ?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
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? :?:
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can use almost arbitrary meshes for the water surface. So just create one that fits your tank and pass that on to the water creation method. However, make sure that the vertices are equally distributed on the flat surface, otherwise the waves will look weird.
Post Reply