Jump to content

  • Log In with Google      Sign In   
  • Create Account

So many tutorials on 8-bit gfx but I want 16-bit.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Hans   Members   -  Reputation: 122

Like
Likes
Like

Posted 08 December 1999 - 12:31 PM

Any good tutorials to cover 16-bit gfx in directX? Anything in MSDN?
Is it possible to set transparent color if you have 16-bit sprites (using directX's own sprite drawing of course).

Sponsor:

#2 Alastair   Members   -  Reputation: 122

Like
Likes
Like

Posted 08 December 1999 - 09:32 AM

I don't know of any tutorial on 16 bit gfx in particular. The main thing with 16 bit gfx is that you encode the color of each pixel in 16 bits (obviously!). There are two common pixel formats -

RGB565
bit 15.....bit 0
RRRRRGGGGGGBBBBB

RGB555
bit15......bit 0
0RRRRRGGGGGBBBBB

Note that in the former format green gets one extra bit of precision and in the latter one bit is wasted. So when you lock a 16 bit surface, each 16 bit word in memory is arranged like this. You can use the DirectX blitting functions as normal. You don't need to worry at all about DirectX palettes. Color keying in 16 bits is also OK.


#3 Splat   Members   -  Reputation: 122

Like
Likes
Like

Posted 08 December 1999 - 12:31 PM

16 bit graphics are on the whole a lot easier than 8-bit. MSDN has a ton of info. All you really need to worry about is the difference between formats (as stated before, 555 vs. 565 and sometimes the ordering of the components).

- Splat





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS