Jump to content
  • Advertisement
Sign in to follow this  
Liam M

Blt opacity & 2D AA

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

Ok, i have two quick questions on DirectDraw: A)How do i do semi-transparent colour fills? sort of like modifying the opacity in photoshop, where the image behind the fill is still partially visible, but appears sligthly obscured by the fill. B) is it possible to sort of, anti alias the edges of my sprites, so they dont appear so jagged, and the world looks more blended, and not as jagged? I cant figure these out, i think the answer lies in the DDBLTFX struct, but cant find em'. Any help is greatly appreciated, Cheers

Share this post


Link to post
Share on other sites
Advertisement
This sort of thing would require alpha-blending, a technique that as far as I know is not supported in direct-draw (could be wrong though, i stopped using DD about 3 years ago).

I'm using opengl at the moment on a 2d engine, and you can get very pleasing anti-aliasing using the alpha channel of your sprites bitmap, as well as easy sprite rotation and scaling.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!