• Advertisement

Archived

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

John Carmark's ZFail Shaodw Volumes?

This topic is 5467 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

I use ZFail algorithm to instead SDK's ZPass,code as follow: device.SetRenderState( D3DRS_STENCILPASS, D3DSTENCILOP_KEEP); device.SetRenderState( D3DRS_CULLMODE, D3DCULL_CW ); device.SetRenderState( D3DRS_STENCILZFAIL, D3DSTENCILOP_INCR ); shadow.Render( device ); device.SetRenderState( D3DRS_CULLMODE, D3DCULL_CCW ); device.SetRenderState( D3DRS_STENCILZFAIL, D3DSTENCILOP_DECR ); shadow.Render( device ); But got a strange effect,the tail face of the shadow volume displayed as second shadow of the render object,and the shadow which on render object seems fliped...... I changed the ShadowVolume SDK sample to ZFail shadow,got a same result,What is wrong? Thanks! We create world. [edited by - kimryo on May 2, 2003 3:46:06 AM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement