Translucent / Transparante backgrounds on materials/sprite
by Justin Coleman · in Torque X 2D · 10/03/2009 (12:49 pm) · 4 replies
Okay so im having trouble figure out why the transparant/translucent background checkbox is missing from my material I imported. It is PNG format, and for some reason, Torque X will draw it with the black/white background that is usually transparent. The alpha channel in other words, is not an option for any of the materials I imported in torque x 2d. Suggestions?
#2
Not sure if it is still present. Do you have the source?
10/06/2009 (6:45 pm)
Last I knew there was a bug with translucency that required engine or xml modification. Not sure if it is still present. Do you have the source?
#3
10/06/2009 (8:29 pm)
Now that I'm home, If I remember right. You need to modify the SimpleMaterial.cs _isColorBlended property to be true. Then use the visibility level as Brian Mentioned. Their is no longer a translucency tick box in TXB far as I know.
#4
If that's the issue then checkout Gimp, which is particularly good at handling pngs and alpha channels.
10/06/2009 (8:30 pm)
Alternatively Justin might be referring to the alpha channel in the png image itself not being rendered as it should. In which case you need to check the png files are saving with the proper information.If that's the issue then checkout Gimp, which is particularly good at handling pngs and alpha channels.
Torque Owner Brian
Brian