Game Development Community

Alpha Mask Texture on DTS model

by CdnGater · in Torque Game Engine · 08/20/2006 (11:36 am) · 4 replies

For example, using Milkshape, I create a plane, I assign a material to it. This material is a png file with an alpha mask. The png displays a circle with the corners masked out. In Milkshape I see the plane looking like a circle with my png.

So I export the plane into a DTS, load it up in TGE. But what I see is not what I was expecting. I see my plane, with my circle texture, but where the mask would be, its white and solid.

Am I missing something? Or something this simple can't be done in tge atm?

And yes, incase anyone asks, I did do a search, but either could not find something addressing my issue specificly or find anything releavent.

#1
08/20/2006 (11:47 am)
Well.. torque can and does do the transparency you expect.
I do it often. Is the PNG 32 bit?
#2
08/20/2006 (12:31 pm)
From your write up there some steps missing. Png must be power of two (256 x 128, 256 x 256, etc.). You must also tell the export it is a transparency. Click Drag the slider under the word Emissive to the E.
You should see the plane turn transparncey. If you using ms2dtsExporterPlus 2.6.1.0 Export, you need to do this to. Click File/Export/Torque DTSPlus then Click the Material01 in the Materials box. Click Edit button under the Materials box. Click check box for the "Translucent" in the Flag section then Ok button. If you want email me your ms3d file with texture, I will setup for you and email back.
#3
08/20/2006 (1:54 pm)
Ah thank you Michael, ms2dtsExporterPlus is what I was missing. Can't do that with the normal exporter that comes with TGE, now everything works as I expected.
#4
08/20/2006 (3:31 pm)
You very welcome. Happy Torqueing!