Jump to content
  • Advertisement
Sign in to follow this  

Weird alpha blending

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

Hey guys! I am currently experimenting with particle systems, point sprites and alpha blending. I'm making good progress but now I ran into something I can't make any sense of. When I blend together several sprites to create something smoke-like I get weird results. The smoke shows a colored "aura" depending on the background (s. Images) http://fractal-games.vndv.com/deposit/images.htm My renderstates are those: ALPHABLENDENABLE = TRUE SRCBLEND = SRCALPHA DESTBLEND = INVSRCALPHA Texture 0 (alpha map): ALPHAOP = MODULATE ALPHAARG1 = TEXTURE ALPHAARG2 = DIFFUSE Texture 1 (actual texture): COLOROP = MODULATE COLORARG1 = TEXTURE COLORARG2 = DIFFUSE ALPHAOP = MODULATE ALPHAARG1 = CURRENT ALPHAARG2 = DIFFUSE All the diffuse colors are grayscales (r = g = b). Same as the background colors and pretty much all colors in the textures (s. Images). So where do these colored auras come from? And more importantly: how do I get rid of them? Thanks in advance, ChaosIII

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • 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!