[gameprogrammer] Re: Open gl greyscale to color palette

You need to give more context to the question. Are you just trying to
add color to an image and store it in a file or are you trying to
display it on the screen and change its color by changing palette
entries? If you want to use it as a texture map you can use
GL_EXT_paletted_texture that would let you manipulate the palette and
then paint with the texture into an RGB screeen. Or, if you set the
screen depth to 8 bits you'll be stuck with an 8 bit paletted display
and you can't use anything else.

Bob Pendleton

On Fri, Oct 2, 2009 at 1:00 PM, Kevin Jenkins <gameprogrammer@xxxxxxxxxx> wrote:
> I have a greyscale texture that I want to colorize based on a palette, where
> I define each of the 256 greyscale values to a color. How would I do this in
> OpenGL?
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>



-- 
+-----------------------------------------------------------
+ Bob Pendleton: writer and programmer
+ email: Bob@xxxxxxxxxxxxx
+ web: www.TheGrumpyProgrammer.com

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: