Sign in to follow this  

Blt opacity & 2D AA

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

This topic is 4749 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this