Game Development Community

Transparency and Render Order Question

by Scott Doerrfeld · in Torque Game Engine · 10/23/2007 (5:39 pm) · 0 replies

Do bounding boxes determine the render order for objects with semi-transparent materials?

The semi-transparent branches on my oak tree are showing up in front of other semi-transparent objects in my scene when they shouldn't be. It seems that when the bounding boxes of two semi-transparent objects are overlapping, the engine has trouble determining the render order. This is especially a tricky case when I want to have objects (like a banner) placed under the tree branches but close to the tree trunk.

I thought one way to help this is to make the bounding boxes smaller for my trees. Yet no matter how I set the bounding box to in 3ds Max, when I bring the tree into the Mission Editor the selection box is huge and encompassing the entire object. Is the selection box the same as the bounding box? Is the bounding box getting automatically generated somehow? Am I even on the right track here or does someone else have a better way of solving this problem?

(I know I've somehow exported an object before where the bounding box is smaller than the object itself...can't remember quite how I did that!)