Archived

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

BigCarlito

DX RenderStates for Smoke Effect

Recommended Posts

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
mmm, anyone have a more exact description? ;-) If I use D3DBLEND_ONE for both SRC and DEST, the black portion of the texture is transparent.

Share this post


Link to post
Share on other sites
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