Sign in to follow this  
KaiserJohan

Directional shadow maps and view/perspective matrix?

Recommended Posts

KaiserJohan    2317

I'm doing shadow maps starting with directional lights thinking it would be simpler, untill I realised I have no idea how the actual view and perspective matrices are computed, since all I have is the light direction.

 

Judging from what Ive found it seems I need an orthographic perspective matrix yet I havnt found a good explanation on what it actually is and how it is constructed using for example glm::ortho. 

 

And the view matrix itself is puzzling. 

 

Any pointers?

Share this post


Link to post
Share on other sites
Chibuye Kunda    105

You will need to learn the math behind the matrices, i recommend the book called "Interactive Computer Graphics - a top down approach" This book gives you the solid math you need to deal with the matrices( it also shows you how to deal with shadows

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this