Results 1 to 2 of 2

Thread: color depth question

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    12

    color depth question

    I was wondering if there is a restriction in the color depth that OpenGL supports. Here's what is going on:

    I have a panel with openGL on a form. To simulate transparent background of the panel I grab the color of the form and make that my clear color in OGL. Everything is fine under 16bit or higher, but I get black in 256 colors - regardless of form color.

    any ideas?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    Belmont, CA, USA
    Posts
    216

    Re: color depth question

    256 colors is called "color-index mode" in OpenGL. Lots of things in OpenGL don't work or work differently when using color-index mode.

    As far as your particular problem -- it sounds to me like you didn't set up a palette somewhere, so all the color end up black.

Similar Threads

  1. Depth buffer / depth test question
    By openglbeginner123 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-14-2014, 05:13 PM
  2. The Color and Depth buffer.....
    By Deemo24 in forum OpenGL: Windows
    Replies: 1
    Last Post: 01-07-2005, 12:42 AM
  3. Color depth woes...
    By Jared@ETC in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-09-2003, 12:55 PM
  4. Question about texture color depth
    By passalis in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-15-2001, 07:03 AM
  5. Trouble with color depth!!!
    By Vision in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-21-2001, 12:04 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