Game Development Community

Dynamically Change texture of t2dShape3D

by James Terry · in Torque Game Builder · 11/08/2006 (9:30 am) · 0 replies

I am trying to figure out an engine modification that would allow me to dynamically change the texture on a simple t2dShape3D, i.e. a cube.

What I want is to to have each side of the cube be a different texture (or color) and also be able to change those textures.

I've been looking at some OpenGL tutorials that let you change the textures on a side of a cube by using raw image data and putting it on each surface, but I was thinking there might be an easier way to do this given the way T2D already handles dts textures.

Any help would be greatly appreciated, thanks