Go Back   Lightwave Community at SimplyLightwave > Categories > Rendering, Lighting, Texturing and Effects
Register FAQ Members List Calendar Mark Forums Read

Reply
 
Thread Tools
Old 18-11-2005, 06:49 PM   #1
nemac4
Super Moderator
 
nemac4's Avatar
 
Join Date: May 2003
Posts: 232
Default 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
Attached Images
File Type: jpg rt_sm_combo_w snr 6.6_sec.jpg (78.7 KB, 165 views)
nemac4 is offline   Reply With Quote
Old 18-11-2005, 06:50 PM   #2
nemac4
Super Moderator
 
nemac4's Avatar
 
Join Date: May 2003
Posts: 232
Default

RT+SM w/ SNR
Attached Images
File Type: jpg rt_sm_combo_w snr 20.3_sec.jpg (74.9 KB, 160 views)
nemac4 is offline   Reply With Quote
Old 18-11-2005, 06:51 PM   #3
nemac4
Super Moderator
 
nemac4's Avatar
 
Join Date: May 2003
Posts: 232
Default

area light w/ no SNR
Attached Images
File Type: jpg arealight_q4_no snr 25_sec.jpg (74.4 KB, 155 views)
nemac4 is offline   Reply With Quote
Old 18-11-2005, 06:51 PM   #4
nemac4
Super Moderator
 
nemac4's Avatar
 
Join Date: May 2003
Posts: 232
Default

area light w/ SNR
Attached Images
File Type: jpg arealight_q4_w snr 38.9_sec.jpg (72.4 KB, 152 views)
nemac4 is offline   Reply With Quote
Old 19-11-2005, 08:50 AM   #5
Mark
Super Moderator
 
Mark's Avatar
 
Join Date: Jan 2003
Location: Sunbury, UK
Posts: 2,339
Default

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?
Mark is offline   Reply With Quote
Old 19-11-2005, 05:52 PM   #6
nemac4
Super Moderator
 
nemac4's Avatar
 
Join Date: May 2003
Posts: 232
Default

Originally posted by Mark
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?
Thanks Mark.

Here is a render with a reflective object:

render time 111.8 seconds
Attached Images
File Type: jpg rt+sm w_ reflection-clip-and-transp.jpg (119.5 KB, 124 views)
nemac4 is offline   Reply With Quote
Old 19-11-2005, 05:55 PM   #7
nemac4
Super Moderator
 
nemac4's Avatar
 
Join Date: May 2003
Posts: 232
Default

This one has 2 sets of lights for a mini array.
Render Time 163.5 seconds
Attached Images
File Type: jpg rt+sm w_ reflection-clip-and-transp2.jpg (121.7 KB, 122 views)
nemac4 is offline   Reply With Quote
Old 19-11-2005, 05:56 PM   #8
nemac4
Super Moderator
 
nemac4's Avatar
 
Join Date: May 2003
Posts: 232
Default

This is a render with the area light version.
Render time 353.2 seconds
Attached Images
File Type: jpg area w_ reflection-clip-and-transp2.jpg (124.9 KB, 123 views)
nemac4 is offline   Reply With Quote
Old 19-11-2005, 06:19 PM   #9
nemac4
Super Moderator
 
nemac4's Avatar
 
Join Date: May 2003
Posts: 232
Default

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.
nemac4 is offline   Reply With Quote
Reply


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

Forum Jump




Online since 2001
A good place to start for a newbie
Catch up with SimplyLightWave
SimplyLightWave was first started in London 14 years ago, and we've been dedicated to producing quality software training ever since. Faithful to the principle of learning by doing, our project based courses aim to give you the practical skills to quickly start creating your own work in LightWave. More...
Copyright © 2001-2018 SimplyLightWave | Terms & Conditions | Privacy Policy
/* Contact Form */