|
-
Mar 22nd, 2002, 09:02 AM
#1
Thread Starter
Frenzied Member
Palette shifting
Hi everyone
well I know people have asked about palettes before but I am not interested in the basics of it right now.
I am using DirectX7 and I do some palette shifting in 8 bit colors... it all works pretty nice except for that my effect sometimes looks pretty wierd. after looking through the (short and simple) code for hours I found out that my problem has to be that black always remains black.
Has anyone ever experienced that problem?
I set the allow256 flag...
so does anyone know of this problem? any workarounds?
Sanity is a full time job
Puh das war harter Stoff!
-
Mar 26th, 2002, 01:12 PM
#2
Frenzied Member
I always thought that the Allow256 flag would give you access to ALL the colors of the palette... Look at the DDBlend sample from MS, they use all the palette colors and none of them is black 
I tried using palettes before but the problem is that it doesn't let me have, for example, a 256-colors paletted image, change its colors, and then blt it to a 24-bits surface... any idea?
-
Mar 26th, 2002, 07:01 PM
#3
Thread Starter
Frenzied Member
well actually that should work if you still have the palette you used to change the picture...
you would have to create your own function to write them to the 24 bit surface though.
Sanity is a full time job
Puh das war harter Stoff!
-
Mar 27th, 2002, 12:36 PM
#4
Frenzied Member
Yeah, but it also doesn't let me create the 256-colors surface (it always creates it as 24-bits). Even if I manage to do it, is there a way to blt it using one of DX's functions? I've seen this in many games, I don't know why it doesn't work for me 
Btw, did you have a look at the sample I told you about?
-
Mar 27th, 2002, 02:23 PM
#5
Thread Starter
Frenzied Member
hey
well I did not see a sample that you told me about... what sample?
well I solved my problem it was a vb thing not a DX problem...
well I don't really get what you want to do... where's the problem with creating a 8 bit surface?
Sanity is a full time job
Puh das war harter Stoff!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|