Game Development Community

Water Wave Undulation Distance, where to adjust

by James Brad Barnette · in Torque 3D Professional · 06/12/2009 (8:22 am) · 5 replies

Is it possible to adjust the distance for the WaterPlane vertex undulation without going into the source and having to recompile?

#1
06/12/2009 (9:34 am)
I believe you can modify the distort properties of a WaterPlane, as well as adjust the shader to achieve the modification.
#2
06/12/2009 (5:09 pm)
There are two fields under the WaterObject group: overallRippleMagnitude and overallWaveMagnitude.
#3
06/12/2009 (5:45 pm)
Oh you were asking about "distance".

The can adjust this via gridSize and gridElementSize under the WaterPlane group. I would reccomend setting $water::wireframe = true in the console to help you see what effect this is having.

Basically the WaterPlane can only undulate the highres part of its mesh that is centered around the player's position. This is why it fades out in the distance because at some point there are no more verts to undulate.

By adjusting these fields you can determine how far out that high res "grid" will go, and therefore indirectly the undulation, but beware that you can set it too high.
#4
06/13/2009 (3:43 pm)
thank you that is exact what i needed to know. i only want to boost it a little as it it is just a little to noticable as it currently is.
#5
06/14/2009 (8:24 pm)
If you find some better default settings let us know.