Sign in to follow this  
ChaosIII

Weird alpha blending

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this