Author Topic: Per-Polygon Transparency  (Read 5078 times)

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Per-Polygon Transparency
« Reply #15 on: February 10, 2014, 09:16:45 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Per-Polygon Transparency
« Reply #16 on: February 10, 2014, 09:19:15 pm »
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.

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Per-Polygon Transparency
« Reply #17 on: February 10, 2014, 09:22:49 pm »
Thanks very much, you were right.

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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Per-Polygon Transparency
« Reply #18 on: February 10, 2014, 09:32:58 pm »
Did you see the other guy (in so many days) "complain" about the same thing I did? : -)
Which is... ???

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: Per-Polygon Transparency
« Reply #19 on: February 10, 2014, 09:41:55 pm »
That setTransparency(int) is counter-intuitive. We just covered the subject.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Per-Polygon Transparency
« Reply #20 on: February 10, 2014, 09:43:02 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.