Advertisement

Palettes Blur

Started by April 15, 2002 09:42 PM
2 comments, last by edwinnie 22 years, 8 months ago
i got a problem understanding what to do if i want to setup the colors correctly. i got 2 8bit bitmaps, both r having different palettes. the palette was created as usual and storage as set to "palette". If i set the palette,
Set_Palette(bitmap8bit.palette); 
to the 1st bitmap, it works perfectly. then noticing that "palette" has already been used, what should i do to set the palette for the 2nd bitmap?
unfortunatly when working in 8bit pallette mode you can have only one active pallete at a time, so all your bitmaps must use the same pallete. i am confused by your problem since you are setting palettes to bitmaps which unless you are using a high/true color (ie 16/24/32bit) screen depth all the bitmaps will use the screen palette. unless the library you are using will adapt the bitmaps to the screen at blit time (a la the gdi when it does color conversions for you).

try to be more specific with what api, langague, OS, and what you are trying to do.
Advertisement
okie,
how do u "move" from using one palette to the other?

(maybe using 8bit was a bad idea)
probably, 8bit is very limited. i suggest taking all of your artwork and converting it by hand in a program like paintshop pro to use the same palette. doing this while your game is running will be slow and not very nice looking. you may want to try using 16bit or 32bit instead of 8bit.

This topic is closed to new replies.

Advertisement