Translucent" doesn't work?
by Jonathan Skinner · in Torque X 2D · 06/25/2007 (9:49 am) · 2 replies
Using the following info from the TX help doc:
Translucent
Allows the alpha channel in the image to affect transparency. You will most likely want to always leave this on.
Several questions/problems:
1. What level of PNG is needed?
2. What is your defined "transparent" color? Black or white?
I'm trying to add a material that has transparency built-in, as per the documentation. I know I can add the material to a scene and change it's Visibility value but if it's in the documentation, surely it should be implemented into the engine.
So...
I've tried 8bit and 24bit PNGs, solid black and solid white alphas, greyscale gradients - nothing affects the transparency. Yes the option is ticked in TGBX.
Ideas?
Translucent
Allows the alpha channel in the image to affect transparency. You will most likely want to always leave this on.
Several questions/problems:
1. What level of PNG is needed?
2. What is your defined "transparent" color? Black or white?
I'm trying to add a material that has transparency built-in, as per the documentation. I know I can add the material to a scene and change it's Visibility value but if it's in the documentation, surely it should be implemented into the engine.
So...
I've tried 8bit and 24bit PNGs, solid black and solid white alphas, greyscale gradients - nothing affects the transparency. Yes the option is ticked in TGBX.
Ideas?
About the author
#2
if you use photoshop, you have to add a 4th channel (this will be your "alpha" channel), then choose save as, SuperPNG (and make sure the checkbox for alpha is checked)
If you are just having regular transparency issues, make sure you set Translucent=true, and are using defaultEffect
to make sure you have transparency setup right, use the gglogo.png file that comes with TX, make sure that is showing up in your game properly. once you get that working, then move on to your custom sprite.
06/25/2007 (8:07 pm)
There is a resource here, somewhere, that lets you download SuperPNGif you use photoshop, you have to add a 4th channel (this will be your "alpha" channel), then choose save as, SuperPNG (and make sure the checkbox for alpha is checked)
If you are just having regular transparency issues, make sure you set Translucent=true, and are using defaultEffect
to make sure you have transparency setup right, use the gglogo.png file that comes with TX, make sure that is showing up in your game properly. once you get that working, then move on to your custom sprite.
Torque Owner Thomas Buscaglia