Jump to content
  • Advertisement
Sign in to follow this  

shadow map proiection

This topic is 4855 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'm tryng to using shadow map for directX but I don't undestand an important passage of the technique. I render on a texture the scene from the light position using pixel shader to render the distance (I use R32 texture format) but when I render the scene I can't project it on the scene. I use this formula for generating texture coordinate for shadow map: value=position x WVP matrix that I use for shadowmap rendering value.xyz/=value.w now xyz must be in the range of -1,1 (value+1)/2 must gave me the right texture coordinate. But they are wrong. I lost some passages, can you help me?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!