Game Development Community

T2dShape3D rendering w alpha

by Jeremy Swigart · in Torque Game Builder · 02/19/2006 (9:32 am) · 4 replies

Say you have a tree, you have the trunk piece and the leaves. How can you ensure that the alpha leaves part will be rendered last? I exported a tree and the trunk seems to be rendering on top of the leaves.

#1
02/19/2006 (9:58 am)
Items rendered to the screen are drawn on top of items that are already there, or you can set draw orders explicitly.

If the trunk and leaves are on the same layer, drawing the trunk and then the leaves should cause the leaves to appear on top of the trunk.

Failing that, look up the draw order options which let you set the order things are rendered in.
#2
02/19/2006 (10:00 am)
The tree is a single dts exported from maya, and used in t2d as a 3d shape. I haven't been able to find anything about changing the draw order from within a 3dshape.
#3
02/19/2006 (11:26 am)
Ah, sorry. I don't know how you'd do it with a single object.
#4
02/19/2006 (1:32 pm)
Check out the Torque art forums, there are certain ways to set up your 3D object to be exported properly with transparent parts being ordered right :)