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 5 of 5

Thread: are GL_COLOR_INDEX textures converted to RGBA-Textures?

  1. #1
    Intern Newbie
    Join Date
    Aug 2000
    Location
    de
    Posts
    45

    are GL_COLOR_INDEX textures converted to RGBA-Textures?

    Are GL_COLOR_INDEX textures converted to RGBA-Textures in the memory? Or are they converted while drawing?

  2. #2
    Guest

    Re: are GL_COLOR_INDEX textures converted to RGBA-Textures?

    I would guess that that depends on your card.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Sep 2000
    Location
    Santa Clara, CA
    Posts
    1,463

    Re: are GL_COLOR_INDEX textures converted to RGBA-Textures?

    On GeForce and up, we support paletted textures natively in hardware.

    - Matt

  4. #4
    Intern Newbie
    Join Date
    Aug 2000
    Location
    de
    Posts
    45

    Re: are GL_COLOR_INDEX textures converted to RGBA-Textures?

    Thanks.

    By the way...is it possible to change the palette realtime (without realoading the texture)?

  5. #5
    Senior Member OpenGL Pro cass's Avatar
    Join Date
    Feb 2000
    Location
    Austin, TX, USA
    Posts
    1,058

    Re: are GL_COLOR_INDEX textures converted to RGBA-Textures?

    TB-Rex,

    Without the EXT_paletted_texture extension, the internal format for the texture
    must be one of the common ones like RGB, RGBA, ALPHA, LUMINANCE_ALPHA,
    and all the various size specified ones like RGB8, etc.

    If you use an internal format like that, with an EXTERNAL format of COLOR_INDEX,
    then OpenGL uses the currently specified pixel maps (glPixelMap) to convert the
    indices into colors at download time.

    The paletted texture extension, on the other hand stores the indices only, and uses
    them to fetch colors at render time.

    Thanks -
    Cass
    Cass Everitt -- cass@xyzw.us

Posting Permissions

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