Game Development Community

Ocean and shore

by Vincent Ellis · in Torque 3D Beginner · 11/10/2013 (12:18 pm) · 3 replies

I'm generating a T3D terrain based on a World Machine heightmap and now i'm trying to cover the edges with the ocean (so, only the areas with enough height are displayed, creating the illusion of an island. Is there a way of creating a seamlessly endless ocean?

What about the shore shader? Is there a built-in one? For creating that foam effect when it's colliding with the terrain.

#1
11/10/2013 (5:10 pm)
For an infinite ocean, you need to add a water block, check out the documentation here (World Editor, Adding Objects, Waterblock). It will also show you how to add foam.
#2
11/10/2013 (6:07 pm)
No, it's water plane.
#3
11/11/2013 (4:44 pm)
Duion is correct, sorry about that! A water plane will stretch to infinity, while a water block has a limited size, usually used for lakes and ponds.