How is the Spotlight Projectionmatrix calculated?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
white_waluigi
Goblin
Posts: 253
Joined: Sat Sep 28, 2013 3:46 pm
x 10

How is the Spotlight Projectionmatrix calculated?

Post by white_waluigi »

I'm currently experimenting with a custom depthmap shadow system.
I already got pointlights with shadows working.
But currently I'm stuck at the spotlights because I have no idea how the Projection matrix is calculated.
Can someone explain how to calculate the Projection matrix using the ligth-camera position, direction and FOV?
Or point me to the pice of code inside Ogre that calculates it?
Post Reply