Skip to main content
GameDev.net gamedev.net
🔒 Locked

8-bit surface, 24-bit screen...

Started by Ro_Akira Jul 5, 2000 at 5:25 PM 5 replies 450+ views
Original Post
Ro_Akira
Ro_Akira
Um, I''m sure this has been asked at some time before, but I''ve got an 8-bit oss, made and attached a 256-color palette, and want to blit it to the backbuffer. Thing is, my video mode/primarys/and backbuffer are all 24-bit. I kinda assumed this wouldn''t be a problem - the surface pixel values would just refer to the palette entries, which would then be the color that''d be blitted to the backbuffer. Sadly, I''m getting DDERR_UNSUPPORTED from blt. This tells me it''s not working (No way!). But what I want to know is does it fail because of lack of hardware support & unsupported by HEL, or I should have the a/same pal attached to the back/primary surface, or what? I could manually create another 24-bit oss, and convert each of the pal entries into the 24-bit colors for the new oss. But I was hoping of saving a bit of space by storing them as 8-bit, and that''d kinda defeat that purpose... I''m sure everyone has come upon/conquered this problem before? Great. I await your replies... oh, and thanks in advance! Akira
Ro_Akira
Ro_Akira
Thanks,

Blast DirectX!

I would have thought that to be an non-to-difficult task for it to do. Well, seems like I''ll have to demand a minimum spec. 128Mb video cards to hold all the graphics for my game. Hey, wait a min. They aren''t out yet, are they?! Blast!
Ro_Akira
Ro_Akira
"...If you are using Direct draw, have you considered using Direct3D, but using textures as a replacemnet for surface blits? This adds hardware capability for transparency and scaling but, of course, restricts you to cards with 3D acceleration...."

My S3 card has some 3D capabilities, but it''s um, not too good. Is there any way to use V2? Or would that complicate things, and would I have to have adifferent setup for 3D+2D combo cards, like V3 etc.? Or will it just compilcate things full-stop?!
Ro_Akira
Ro_Akira
Thanks HTH,

Lets hope DX8 provides some of that missing stuff(this,alpha-blending,too many to list...!), eh?!

Cheers
Akira

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.