Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Directional shadow maps and view/perspective matrix?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 KaiserJohan   Members   -  Reputation: 1233

Like
0Likes
Like

Posted 24 December 2013 - 03:33 PM

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?



Sponsor:

#2 blue_charmander   Members   -  Reputation: 101

Like
0Likes
Like

Posted 29 December 2013 - 07:47 AM

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



#3 KaiserJohan   Members   -  Reputation: 1233

Like
0Likes
Like

Posted 29 December 2013 - 06:41 PM

The projection matrix I can understand, but what of the view matrix?






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS