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: ColorTable with more than 256 colors?

  1. #1
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    58

    ColorTable with more than 256 colors?

    How can you create a color table that supports more than 256 colors?

    I've searched through the forums and I've read that I might be able to do this with dependent textures. Could someone explain a little more on how I could do this?

  2. #2
    Intern Contributor tweakoz's Avatar
    Join Date
    Apr 2001
    Location
    Santa Cruz, CA
    Posts
    51

    Re: ColorTable with more than 256 colors?

    Hmm: I will take a quick guess.

    In a pixel shader,
    use texture stage zero's R and G channels as texture coordinates (scaled to range [0..1]
    for texture stage one.

    Michael T. Mayers
    Senior Software Engineer
    Jaleco Entertainment

  3. #3
    Intern Contributor tweakoz's Avatar
    Join Date
    Apr 2001
    Location
    Santa Cruz, CA
    Posts
    51

    Re: ColorTable with more than 256 colors?

    I guess I should clarify a little more,

    tex stage 0 = indexed texture stored as
    RGBA.
    R/G = tex coords for stage 1
    B/A = not used (use for
    something else?)

    tex stage 1 = palette texture
    (up to 64K [256x256]
    palette entries )

    Michael T. Mayers
    Senior Software Engineer
    Jaleco Entertainment

Posting Permissions

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