Jump to content
  • Advertisement

Archived

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

valkyire

problem with shadowmap UVs

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

Hi all, i''ve got a problem with my shadow maps. when i apply the texture to just one surface, things are ok. however, when i attempt to apply the texture to more than one surface, ie a corner where two walls meet, then the texture becomes severely warped/stretched, but usually on just one wall. this obviously appears to be a result of calculating the UV''s incorrectly, but i can''t find the bug. i''m currently generating the UVs by applying a projection matrix to each vertex of every receiver polygon, which is only four polygons. the shadow map is generated with just one light source/blocker object pair. that''s it, any advice would be great, thanks!

Share this post


Link to post
Share on other sites
Advertisement

  • 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!