Jump to content
  • Advertisement

Archived

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

ibolcina

Alpha blending

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

Hi! Iam looking for some articles or resources about using alpha blending. Iam a little lost in all those options and flags, so I am doing it in not optimal way. Iam interested in stuff like flames, lasers, etc, how to add glow around fireballs , how to set screen a little red when user gets hit and then slowly return it to normal color,... Thanx for help

Share this post


Link to post
Share on other sites
Advertisement
hiya, about that red thingy, you could use d3d''s gamma ramps,

IDirect3DDevice8::SetGammaRamp(...)

Share this post


Link to post
Share on other sites
I would look in the "Special Effects" section in the DirectX documentation that comes with the SDK. They actually explain how to achieve effects such as smoke, stain-glass windows, and flares.

Essentially, you have to think in arithmetic terms. If you add color values from both pixels (one/one blending), you''ll get a color saturation (useful for lens flares). If you specify a mixture (color/one-minus-color), then you''ll get a blend (useful for mist or some types of windows).

Good luck!





MatrixCubed
http://MatrixCubed.cjb.net

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.

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!