Welcome, Unregistered.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
Old 17-Feb-2010, 01:12   #1
shuipi
Junior Member
 
Join Date: Mar 2004
Location: Beijing, China
Posts: 73
Icon Question baking shadow to light map for direct sun light

I know this is a very old technology but it's the first time I implement it. So my question is, since the sun light is directional light, when baking its shadow, I just shoot rays in the negative sun light direction and see if it hits anything, but this can only give a sharp edged shadow, and together with the low resolution light map, the result looks very bad. However in all the games that do this, the baked shadow looks very soft. I can think of several methods that could soften the shadow, but I want to ask what's the best way (or the most used way) to do it?
shuipi is offline   Reply With Quote
Old 17-Feb-2010, 05:40   #2
jlippo
Member
 
Join Date: Oct 2004
Posts: 719
Default

Try shooting several rays into a disk with size of '0.5 degrees and you have decently accurate result for our sun, just average the results for each pixel.
For anti aliasing jitter the location from where you shoot the sample along the surface as well. (preferably within the sample.)
jlippo is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:31.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.