Game Development Community

Water / Ocean

by Talcott Langston · in Torque X 3D · 06/10/2009 (6:22 am) · 12 replies


Does TX3 support water planes and water volumes, or do we have to write that in ourselves? I need to be able to simulate going both over and under the surface of water but don't really have the time to write convincing ocean code.

thanks,

#1
06/10/2009 (2:21 pm)
I am interested in this as well.
#2
06/10/2009 (7:43 pm)
I don't see any water block classes in the class reference, but I'm also new to TX. All I really know is that it is based off TGEA, so there is possibly a shader that can do it, but I don't know.

Your chances of getting an official response in this forum are unfortunately close to zero.
#3
06/11/2009 (6:29 am)
Yeah- underwater I can do with a lens shader. However, I'm guessing there's no easy way to add an infinite water plane- you have to create your own textures / parallax maps and for larger waves, your own vertex animations?
#4
06/11/2009 (9:02 am)
What happened to all the GG guys. Hope they didn't get sick of us :P .

You could probably create your own component using shaders, hopefully it can be added into the builder at some point.
#5
06/11/2009 (8:42 pm)
The GG guys and most of the lincensee's don't see this forum tucked away down here. Occasionally someone remembers and turns up. It's not very good though from a sales perspective if you ask me, as I've seen loads of people disappear thinking there is no support for the engine (and I ask myself that daily as well, as I'm still evaluating the engine).
#6
06/11/2009 (10:31 pm)
I happen to need ocean for my next 3D project, but it's only going to be the ocean surface, no underwater effects. I'm coding it as a material shader effect applied to a simple plane object. It will support rippling waves and surface reflections. If that will work for you, I can post back the results in a few days.

John K.
www.envygames.com
#7
06/12/2009 (7:51 am)
That would be really great if you could john. I would love to see and example of how to do that.
#8
06/12/2009 (11:19 am)
Okay, I've put this together for Torque X. It's a simple ocean shader effect that is wrapped by a custom material that is applied to a 3D plane.



I've posted more information, source code, and assets required here.

I will also start adding more and more Torque X resources for 2D and 3D games on my site, so it might be a good idea to check back on ocassion.

John K.
www.envygames.com
#9
06/13/2009 (7:44 am)
Thanks, John! That was much appreciated!
#10
06/13/2009 (5:51 pm)
Awesome John.
#11
06/16/2009 (4:14 am)
Why does the client engine look like it's stuttering in that video?

If you watch the water closely you can see it pause every half a second or so.
#12
06/16/2009 (1:05 pm)
John did u use l3dt to do your terrain?