Per-Polygon Transparency

Started by AGP, February 06, 2014, 07:21:37 PM

Previous topic - Next topic

AGP

The texture for these planes are PNGs with an alpha channel (see below). Why, then, are the planes appearing rectangular?

https://dl.dropboxusercontent.com/u/93826015/splash.png

EgonOlsen

Most likely because you are loading them wrong. You have to use the one of the constructors in Texture that take a boolean for useAlpha and set it to true.

AGP

Thanks very much, you were right.

Did you see the other guy (in so many days) "complain" about the same thing I did? : -)

EgonOlsen

Quote from: AGP on February 10, 2014, 09:22:49 PM
Did you see the other guy (in so many days) "complain" about the same thing I did? : -)
Which is... ???

AGP

That setTransparency(int) is counter-intuitive. We just covered the subject.

EgonOlsen

Quote from: AGP on February 10, 2014, 09:41:55 PM
That setTransparency(int) is counter-intuitive. We just covered the subject.
No, that's not the point of the other thread. He wants to create some stencil effect by using blending. That's something different.