🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Semi-Transparency in DirectDraw: possible?

Started by
2 comments, last by Matthew Allen 24 years, 8 months ago
It's possible, but you have to do it yourself. You have to write your own alpha-blitter -- which isn't too hard, but it can easily be too slow. There's actually a good article on this site which describes some of the alpha blending algorithms. I believe it's called MMX Enhanced Alpha Blending (don't worry, it's still useful even if you don't know MMX).

BTW: You need to know how to lock surfaces and plot pixels. I can try and dig up some articles if you need to know how to do that stuff.

--TheGoop

[This message has been edited by TheGoop (edited October 21, 1999).]

Advertisement
What kind of performance hit?

Mason McCuskey
Spin Studios
www.spin-studios.com

Founder, Cuttlefish Industries
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
Could anyone tell me if it's possible to do semi-transparent blits (alpha-blits?) in DirectDraw? I know it's possible if I were to set up Direct3D and use D3D surface alpha blitting, but I really don't want to go through the extra hassle of setting it up (not to mention the preformance hit). Any articles on how to do it would also be helpfull. Thanks for helping

------------------
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/

Thanks for the help, TheGoop. That article is what I was looking for. I was hoping it would already have been implemented in DirectDraw7, but I guess it's not. Well, I guess I should start coding... Thanks agian

------------------
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/

This topic is closed to new replies.

Advertisement