Results 1 to 2 of 2

Thread: transparency for one color

  1. #1
    bekas
    Guest

    transparency for one color

    Hi,

    I need that the texture material is fully transparent in its white pixels
    and non-transparent for any other color. How do you sugest to do it?
    It is possible to use an appropriate combination of transparent color and
    transparency?

    Thanks, best regards.
    Stanislav

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: transparency for one color

    This sounds like a case where <transparent opaque="your_mode_here"><texture> is used.

    To key on white in the common profile, you need to either: Use opaque="A_ONE" and process your texture image into an RGBA where all the white pixels have a transparent alpha value, or use opaque="RGB_ZERO" and add a <newparam> or <extra> element that activates an appropriate alpha test in your renderer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •