Game Development Community

Non-Square Terrain

by Jack Stone · in Torque 3D Professional · 11/02/2014 (4:21 pm) · 2 replies

Hello,

I am currently working on a spherical terrain implementation in T3D.

I have managed to figure out the majority of the math required to create a "quad cube". I am creating six terrains, arranging them into a cube, and then projecting those terrains to a sphere shape.

However, I have noticed a serious problem, which is that in order to project the terrains to a sphere, I need to be able to change the positions of the x and y values as well as the z values.

The height values are currently stored in a Vector<U16>. I have changed this to a vector of custom types, however, I can't seem to see where this vertex list is rendered, or how these values are processed.

Can anyone shed any light on this?

Thanks!