Game Development Community

Clipping/sorting order error with tga

by Wombah · in Torque Game Engine · 06/16/2004 (7:34 am) · 5 replies

Ive implemented the tga-patch found here, and now I've got a problem...
I'm trying to make a tree, using the alphachannel for the leaves. The problem is that when drawing the leaves torque messes the draw order up. Leaves aren't clipping each other correct and some leaves always shows on top.
Has anyone seen this before? Solved it?

#1
06/16/2004 (7:38 am)
What modelling application are you using to export your tree model? Some exporters do not sort correctly at the moment and cause this to happen. This might be what is happening for you.

Matt
Primate Studios
#2
06/17/2004 (1:24 am)
Ok. I'm using maya (5/6) and the dts exporter for those. Both 5 and 6 gives the same error.
#3
06/17/2004 (2:28 am)
There is something in the 3ds max documentation about this, apparently you have to put SORT:: infront of something apparently, i think it was the object name, it makes sure the polygons render correctly, you will have to dig it out n have a read.
#4
06/17/2004 (3:00 am)
Apparently one of the graphic artists on this project tried that, and maya can't handle naming that includes '::'. Is it safe to assume we're up shit creek unless we rewrite the dtsexporter then? (This is just a short schoolproject, so there's no time to rewrite the exporter...)
#5
06/17/2004 (3:41 am)
Doggbert, have you looked through the Maya exporter documentation from Danny Ngan? Also the export still seems to be in beta so that feature may not be implemented yet.

Matt :)
Primate Studios