Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 29 Nov 2011
Offline Last Active Sep 20 2014 03:28 PM

#5007549 Bug in my shadow map

Posted by he3117 on 05 December 2012 - 04:31 PM

Sounds like you're not clearing (setting all values to a clip-far value) your shadow map before rendering.

Finally I found it.:lol: The problem was Zbuffer.It couldn't clear the Zbuffer.
From MSDN:
IDirect3DDevice9::Clear will fail if you:
1-Try to clear either the depth buffer or the stencil buffer of a render target that does not have an attached depth buffer.
2-Try to clear the stencil buffer when the depth buffer does not contain stencil data.

Mine was case 2.