Jump to content
  • Advertisement

Archived

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

mse61

Alpha Blend

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

I need some info on advanced alpha blends. I have the basics like interpolation of the two colors. What is the fastest way to do it? ~mse61

Share this post


Link to post
Share on other sites
Advertisement
mse:if you can, do it in asm using MMX instructions, they work pretty nice. The "fastest" way to do it in software is:
1.you start with a 32bit RGBA image
2.according to your alpha, you calculate the RGB values in your image
3.now as you alpha-blend your image you only need to multiply the destination RGB color values by 255-Alpha value and then add the source RGB values(which are already precalculated) to it.
That''s the fastest way I know to do it. Hope it helps

With best regards,
Mirek Czerwiñski
http://kris.top.pl/~kherin/

Share this post


Link to post
Share on other sites
I need to do 2d alpha blends using DX7.

Anybody know where i can find a list of the MMX instruction set?

~mse61

Share this post


Link to post
Share on other sites
Doesn't the front page of this site (www.gamdev.net) have a link to fast alpha blending at this very moment?

Here it is:
http://www.gamedev.net/reference/programming/features/fastalpha/


Edited by - waramp on November 24, 2001 4:26:46 AM

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!