• Advertisement
Sign in to follow this  

Shadows from point lights

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

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?

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
[quote name='SamiHuutoniemi' timestamp='1355155267' post='5009104']
The cube version sounds very much easier. Does it still use perspective projection?
[/quote]

You always use ortographic projection afaik.

Share this post


Link to post
Share on other sites
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:

[quote name='MrOMGWTF' timestamp='1355155354' post='5009106']
[quote name='SamiHuutoniemi' timestamp='1355155267' post='5009104']
The cube version sounds very much easier. Does it still use perspective projection?
[/quote]

You always use ortographic projection afaik.
[/quote]

Orthographic projections are for directional shadow maps. Edited by Radikalizm

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement