Game Development Community

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?

#1
06/25/2007 (12:34 pm)
Is transpacency working correctly for the images that came with the engine/docs? If so, is it possible you're using Photoshop 7? I understand specifically PS 7 has some wacky issues exporting PNG's. I think there may be a plugin that helps with that (Super PNG? I'll have to ask one of our artists if that's the case).
#2
06/25/2007 (8:07 pm)
There is a resource here, somewhere, that lets you download SuperPNG

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.