Sign in to follow this  

Blending for dark smoke

This topic is 4714 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, I tried a lot of blending mode, I searched a lot on google, didnt find anything like I want. I want dark smoke. Black. Fading with the alpha value... I'm very desesperate.. :( The best i found is with a smoke texture black around, white in the middle, using this blending mode : glBlendFunc(GL_ONE_MINUS_DST_COLOR,GL_ONE_MINUS_SRC_COLOR); That gave me gray, not black, and some weird artefact. Anyone have an idea? thanks

Share this post


Link to post
Share on other sites
try a texture of plain white RGB (1,1,1) and the greyscale smoke texture in the alpha channel (with a black background)

set the color to 0.2,0.2,0.2,1 and over time decrease the alpha value of color befor drawing it with SRC_ALPHA, ONE minuse SRC_ALPJA

Share this post


Link to post
Share on other sites
That is exactly what I wanted!!!
The concept is quit simple loll
I just get up and thinked about doing this, and I read your replay lol
Thanks a lot!!!

Share this post


Link to post
Share on other sites

This topic is 4714 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.

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