Archived

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

BigCarlito

DX RenderStates for Smoke Effect

Recommended Posts

BigCarlito    122
I guess the title says it all, can anyone tell me the renderstates they use to make a good realistic smoke effect. I can get every color but black to blend over my scene with just about every renderstate combination I try. Thanks all!

Share this post


Link to post
Share on other sites
BigCarlito    122
Figured it out. Needed to set the alpha blending to:

SetRenderState( D3DRS_SRCBLEND, D3DBLEND_ZERO );
SetRenderState( D3DRS_DESTBLEND, D3DBLEND_SRCCOLOR );

to darken the scene with a black texture.

Share this post


Link to post
Share on other sites