Jump to content

Realistic Penumbras


Josh

2,683 views

 Share

Shadows with a constant softness along their edges have always bugged me. Real shadows look like this. Notice the shadow becomes softer the further away it gets from the door frame.

Img_5123.jpg.9deabdab7f081ed567c77544675f34ca.jpg

Here is a mockup of roughly what that shadow looks like with a constant softness around it. It looks so fake!

Image1.jpg.21bc444291e4cadf53f37e2f748b7104.jpg

How does this effect happen? There's not really any such thing as a light that all emits from a single point. The closest thing would be a very small bulb, but that still has volume. Because of this, shadows have a soft edge around them that gets less sharp the further away from the occluding object they are. I think some of this also has to do with photons hitting the edge of the object and scattering a bit as they go past it. The edge of the photon catches on the object and knocks it off course.

shadows.jpg.9b2fb6ee73315c152d9874f7db624d9f.jpg

We have some customers who need very realistic renderings, ideally as close to a photo as possible, and I wanted to see if I could create this behavior with our variance shadow maps. Here are the results: The shadows are sharp when they start being cast and become more blurry as light is scattered.

penumbra.thumb.jpg.9868eb60974e8a5eb51ed0e4025ca9c3.jpg

Here's another shot. The shadows actually look real instead of just being blobby silhouettes.

penumbra2.thumb.jpg.98490fd03900754a13062c80caa5c1b0.jpg

This is really turning out great!

  • Like 6
 Share

4 Comments


Recommended Comments

Quote

Notice the shadow becomes software the further away it gets from the door frame.

Don't you just hate it when you stand in the shade, and all the sudden you got yourself a console application.

  • Haha 1
Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...