Blt opacity & 2D AA

Started by
0 comments, last by JohnHurt 19 years, 4 months ago
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
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.

This topic is closed to new replies.

Advertisement