Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mister Stewart

Direct X palettes

This topic is 6528 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay, what I am trying to do is load up a bitmap background(8 bit), and a player sprite on top of it(also 8 bit ). I have successfuly managed to get the background bitmap up, but what I want to know is as follows: after loading up the first bitmap and setting up the palette for it (lpddpal->SetEntries(blah, blah, blah)), do you do the same with another palette pointer (lpddpal2 perhaps?) or do you use the same palette pointer?

Share this post


Link to post
Share on other sites
Advertisement
You should make sure that the palettes of the two bitmaps are the same. Use Paint Shop Pro or something to do this. Otherwise you are screwed. You should only change the palette once...

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-Chris Bennett of Dwarfsoft
"The Philosophers' Stone of Programming Alchemy"
IOL (The list formerly known as NPCAI) - A GDNet production
Our Doc - The future of RPGs
Thanks to all the goblins over in our little Game Design Corner niche
          

Share this post


Link to post
Share on other sites
Dwarfsoft, I used MSPaint to do my bitmaps - does it matter?

In any case, you use the one palette yeah?

During set up you:
- load in the background
- set the palette
- load the sprite bitmap
- set palette to that
- create the BOB??

Am I on the right track, or do you load in the background and the sprite bitmap files, create the bob THEN set the palette?


Edited by - Mister Stewart on September 2, 2000 9:51:06 AM

Share this post


Link to post
Share on other sites
Using paint I think you have a defined palette. But you might want to check Jasc Software and d d/l a free copy of PSP. At least then you can check the palettes . And you should only ever load the palette once. Otherwise you may distort the colors (if the palette is different that is )

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-Chris Bennett of Dwarfsoft
"The Philosophers' Stone of Programming Alchemy"
IOL (The list formerly known as NPCAI) - A GDNet production
Our Doc - The future of RPGs
Thanks to all the goblins over in our little Game Design Corner niche
          

Share this post


Link to post
Share on other sites
Thanks for the replies, sorry to bother you again, but there is one more thing - I managed to get both the background and the tank bitmap on screen - kind of.

The background is fine, but the tank bitmap keeps flickering on and off really fast as if it's trying to cause an epilectic reaction.

Any suggestions as to what might be wrong?

Oh, BTW, PaintShop, is it by any chance freeware, or do I need to register it after 30 days

Later.

Edited by - Mister Stewart on September 2, 2000 1:05:39 PM

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!