Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Making Background Transparent

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Turkey
    Posts
    6

    Making Background Transparent

    I have a texture and its background color components are 151,151,151.There is a circular blur object at middle of texture.
    If i choose the back color black there is no problem.But my objects color is also black.

    Is there any way to getting my object without back color? Thanks...

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,096

    Re: Making Background Transparent

    Yes, you can use the Alpha channel for transparentcy.
    The transparentcy is based on Alpha values not color. Alpha = 1 non-transparent, 0= transparent, 0.5 simi-transparent.

    Now if you use the TGA file format, it supports Alpha channel and you can create a transparentcy mask with the Alpha channel.

    With BMP's you would need two files one for texture and one for alpha mask.

    Hope this helps.

    Originally posted by Soulreaver:
    I have a texture and its background color components are 151,151,151.There is a circular blur object at middle of texture.
    If i choose the back color black there is no problem.But my objects color is also black.

    Is there any way to getting my object without back color? Thanks...

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2003
    Location
    Turkey
    Posts
    6

    Re: Making Background Transparent

    Thanks a lot.

Posting Permissions

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