|
Register | FAQ | Members List | Calendar | Mark Forums Read |
|
Thread Tools |
18-11-2005, 06:49 PM | #1 |
Super Moderator
Join Date: May 2003
Posts: 232
|
simple light trick for fast soft shadows
I was playing with LW lights and had an idea for an alternative to area lights. It may have limited use but seems to work well.
Create a Spotlight with a shadow map at the desired fuzziness, intensity (set it to about half of what you need), and falloff. Add another Spotlight and parent it to the first light. Set this one to Raytraced Shadows (You can set it to Shadow Mapped if you wish but you should then set fuzz to 0). Now set the intensity to *1.5 over the intensity of the first light. Set the falloff to x/3.2. X being the falloff of the first light. Turn on Shading Noise Reduction for cleaner shadows or increase the shadow map size. Be sure to turn on Raytrace Shadows. Here is a render time comparison from my PC. Scene1: 2 spot lights. 1 Raytraced, 1 Shadow Mapped at 1024 map size and 15 fuzz. 1 point light for fill (no shadows or spec for the fill light). With and without SNR RT+SM Trick = 6.6 sec | 20.3 sec Scene2: 1 area light, Quality lvl 4 (I reduced the area light size to match the shadow of the spotlights) and 1 point light for fill (no shadows or spec for the fill light). With and without SNR Area Light = 25.0 sec | 38.9 Download Scene Files _________________________________ RT+SM no SNR |
18-11-2005, 06:50 PM | #2 |
Super Moderator
Join Date: May 2003
Posts: 232
|
RT+SM w/ SNR
|
18-11-2005, 06:51 PM | #3 |
Super Moderator
Join Date: May 2003
Posts: 232
|
area light w/ no SNR
|
18-11-2005, 06:51 PM | #4 |
Super Moderator
Join Date: May 2003
Posts: 232
|
area light w/ SNR
|
19-11-2005, 08:50 AM | #5 |
Super Moderator
Join Date: Jan 2003
Location: Sunbury, UK
Posts: 2,339
|
That's a pretty good trick there David. How does the trick look when you have reflective objects in the scene (assuming the light is at a reasonable distance from the object) - are the hotspots realistic enough to get away with using the trick?
|
19-11-2005, 05:52 PM | #6 | |
Super Moderator
Join Date: May 2003
Posts: 232
|
Here is a render with a reflective object: render time 111.8 seconds |
|
19-11-2005, 05:55 PM | #7 |
Super Moderator
Join Date: May 2003
Posts: 232
|
This one has 2 sets of lights for a mini array.
Render Time 163.5 seconds |
19-11-2005, 05:56 PM | #8 |
Super Moderator
Join Date: May 2003
Posts: 232
|
This is a render with the area light version.
Render time 353.2 seconds |
19-11-2005, 06:19 PM | #9 |
Super Moderator
Join Date: May 2003
Posts: 232
|
As you can see,.. the further the object is from the light the less accurate it is. If specular highlights become a problem you could disable spec for the lights and add another light with affect specular checked and with diffuse disabled.
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fast camera animation | viewnathan | Members Lounge | 0 | 31-08-2006 12:52 PM |
soft and hard dynamics in one object???? | viewnathan | Members Lounge | 1 | 13-08-2006 10:39 PM |
Thread Tools | |
|