Game Development Community

Transparency maps for torque

by Suzanne Hunter · in Artist Corner · 04/24/2008 (11:14 am) · 1 replies

I work for a company that uses the Torque game engine. I have modeled a box in 3d Max that has an extruded top (for advertising) and extruded sides. Looks and is a charity box which has an ad on the top and is transparent with the exception of money which sits inside the box. I uvw mapped the texture inculding the money texture which sits inside the box. All are attached together. In photoshop. I knocked out an alpha channel for the transparent box. The rest is opaque ( the money inside the box as well as the ad). The ad part shows up alright, however; the money inside the box only shows up intermittently. How do we make the money show up inside this transparent box? Also the extruded parts of the box are almost invisible. No clue as to what is going on.

Thanks, shunter

#1
04/28/2008 (10:18 am)
Does your whole object share one texture/material? It may be that you need to to separate the 'transparent parts', like the glass, and make that a separate texture, then set it up in its own material. Make only that material transparent (not sure what Max calls it, in ms3d its "translucent".)

Additionally, you may be experiencing a problem with photoshop's .png export, which breaks your embedded alpha channels upon export. The fix for that is an old plugin replacement called SuperPNG for photoshop. Could someone post a link to that?

On top of that, I believe there are some sorting oder issues with how tge renders transparent groups and non-transparent groups on the same shape. So, you may even want to create the money as a separate shape and place in the glass case once in the world editor.

Hope this helps, if not, post a screenshot of your problem so we can see it better.