DX RenderStates for Smoke Effect

Started by
2 comments, last by BigCarlito 23 years, 1 month ago
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!
Advertisement
Use D3DRENDERSTATE_ONE with D3DRENDERSTATE_SRCBLEND or DESTBLEND

I forget...it''s been a long time. It was D3DRENDERSTATE_ONE with something else and that''s all I remember.

---------------------------------------------

Hatten something something something!!
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.
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.

This topic is closed to new replies.

Advertisement