Jump to content
  • Advertisement
Sign in to follow this  
Daivuk

Blending for dark smoke

This topic is 4903 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
Advertisement
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
Sign in to follow this  

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