Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Shadows from point lights


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
5 replies to this topic

#1 SamiHuutoniemi   Members   -  Reputation: 259

Like
0Likes
Like

Posted 10 December 2012 - 09:31 AM

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?

Sponsor:

#2 Radikalizm   Crossbones+   -  Reputation: 2934

Like
1Likes
Like

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.

I gets all your texture budgets!


#3 SamiHuutoniemi   Members   -  Reputation: 259

Like
0Likes
Like

Posted 10 December 2012 - 10:01 AM

The cube version sounds very much easier. Does it still use perspective projection?

#4 MrOMGWTF   Members   -  Reputation: 440

Like
-1Likes
Like

Posted 10 December 2012 - 10:02 AM

The cube version sounds very much easier. Does it still use perspective projection?


You always use ortographic projection afaik.

#5 Radikalizm   Crossbones+   -  Reputation: 2934

Like
4Likes
Like

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:


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.

I gets all your texture budgets!


#6 SamiHuutoniemi   Members   -  Reputation: 259

Like
0Likes
Like

Posted 10 December 2012 - 10:06 AM

Ok, thanks! Will look into this!




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