Jump to content
  • Advertisement


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


Bitmap rotation

This topic is 6201 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

Tried rotating a bitmap in dd, and it didnt work..... checked the caps of my device (gf2 mx), and found it doesnt have this capability..... Checked in Sisoft Sandra, and yes, it confirmed - the gf2 mx doesnt have hardware bitmap rotation (and dx doesnt have a HEL version) - now I thought this was pretty strange for such a mainstream card.... where can i get an algorithm to emulate bitmap rotation? here in castle camelot we eat ham and jam and spam alot!

Share this post

Link to post
Share on other sites
I don''t know of any video cards offhand that acually have hardware DD blit rotation. It''s extremely uncommon, and there doesn''t seem to be any hurry to implement it in successive generations of hardware since graphics technology is focusing on 3D so much (DX8 not having Blt anymore certainly re-enforces this trend). Same goes for alpha blended blts too.

The solution is to use Direct3D or OpenGL to render 2D polygons with textures on them. They look just like regular sprites(better, actually, due to the 3D card''s texture filtering), and can easily be rotated, scaled and whatnot. You can also add hardware alpha blending support very easily.

There are a lot of tutorials on "3D-for-2D" out there, and I''d definately reccommend this method for all your 2D needs.

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!