Author Topic: How is the alpha-value information used?  (Read 1535 times)

Offline ErDetEnAnd?

  • int
  • **
  • Posts: 87
    • View Profile
How is the alpha-value information used?
« on: December 28, 2008, 02:07:22 pm »
Take a look at the left texture below. The gray background is not this texture, but another texture on another object behind it.



The "a" has an outline which is painted using antialiasing (which is shown on the right image, which has no alpha values).

It seems to me that the alpha-channel is used, but not the values. Is this supported?

Edit: Using render with 4xAA
« Last Edit: December 28, 2008, 02:28:26 pm by ErDetEnAnd? »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11965
    • View Profile
    • http://www.jpct.net
Re: How is the alpha-value information used?
« Reply #1 on: December 28, 2008, 05:24:56 pm »
If the anti-aliasing part actually contains alpha information, they will be used IF you are using the proper constructor for the texture, i.e. one of the ones with useAlpha-flag. All others will ignore alpha and create their own channel based on the color values. There is no such thing like alpha without alpha or something. Either you have alpha or you don't.

Edit: ...but a high value for transparency may "boost" the alpha values...play around with that values a little to get a feel for it.
« Last Edit: December 28, 2008, 08:25:09 pm by EgonOlsen »