Hello!
I'm doing some shadowmapping and was wondering about how it is done with point lights (instead of spot lights). Since you don't really have a light direction, how do decide what the shadowmap should cover?
Anybody have experience in this field?
5 replies to this topic
Sponsor:
#2 Members - Reputation: 2060
Posted 10 December 2012 - 09:55 AM
You'll have to render multiple shadow maps for a point light.
One of the easiest and probably the most common way to do this is to render 6 shadow maps forming a cube.
Another popular approach is to use dual paraboloid shadow maps which only require 2 shadow maps, but which suffer from some precision issues.
One of the easiest and probably the most common way to do this is to render 6 shadow maps forming a cube.
Another popular approach is to use dual paraboloid shadow maps which only require 2 shadow maps, but which suffer from some precision issues.
#5 Members - Reputation: 2060
Posted 10 December 2012 - 10:04 AM
It's pretty much the same as rendering 6 spot light shadow maps with a field of view of 90°, so yes it still uses a perspective projection.
EDIT:
Orthographic projections are for directional shadow maps.
EDIT:
The cube version sounds very much easier. Does it still use perspective projection?
You always use ortographic projection afaik.
Orthographic projections are for directional shadow maps.
Edited by Radikalizm, 10 December 2012 - 10:05 AM.






