Game Development Community

Oceans

by Nix · in Torque 3D Beginner · 08/07/2010 (7:47 pm) · 2 replies

I'm looking to make an ocean surrounding an island. Ideally I'd like the ocean to rise and fall with the tides so as to cover and uncover a reef. Is there any way to make the WaterPlane dynamic like that?

One workaround would be to switch one waterplane for another at a specific time so that one could have maybe 5 waterplanes at different vertical (z) levels and switch between them to simulate the tide rising and falling.

However I'm an utter noob so advice from someone who actually knows what they are talking about would be greatly appreciated.

#1
08/08/2010 (1:40 am)
Well I'm no where near an expert so I'm just going to throw this out there. Would it be easier to make a script that would adjust the height of your reef / terrain slowly raising and lowering to simulate a tide. I'm not sure if scripts can alter the Z value of terrain or not, but if they can that sure seems easier than making 5 different water planes.

Again I could be wrong just throwing this out there for some thought.
#2
08/08/2010 (4:58 pm)
I've looked in the documentation and I can't find any way for scripts to alter the z value of either terrain or a waterplane.

I presume that would be possible in code though? Can anyone confirm or deny or suggest a workaround?