Results 1 to 2 of 2

Thread: Does OpenGL support color keying?

  1. #1
    Guest

    Does OpenGL support color keying?

    Does OpenGL support color keying, that is supported in Direct3D? How can I enable and set key color?

    Another point, I have RGBA image but how can I take effect of the alpha channel? I can set the A - values to 0 or 128 or what ever, but it doesn't affect anyway!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: Does OpenGL support color keying?

    No, OpenGL does not support color keying. You have to convert the color keyed image to an alpha-keyed image, and then enable alpha testing to reject the keyed pixels.

    To see the effect of alpha, you need to enable blending and select an appropriate blending function.


    [This message has been edited by DFrey (edited 07-13-2001).]

Similar Threads

  1. Frame buffer color keying
    By jcrn in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-11-2005, 11:48 AM
  2. Color Keying
    By GrayFox in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-18-2005, 07:28 PM
  3. color keying
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-03-2003, 06:56 AM
  4. Replies: 4
    Last Post: 07-26-2002, 12:09 PM
  5. openGL color support question
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-14-2001, 01:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean