PxrBarnLightFilter has two modes: Physical and Analytic. Physical Barns provide physically accurate shadowing, while Analytic Barns provide more precise user controls.

Physical Barn

Summary

Physical Barns can be used to simulate what would be done on a set. Think about it as a physical primitive that casts shadows. The Physical Barn acts as a window that only lets light in through the opening shape.

Uses

Shaping

Both the size of the light as well as the position of the barn in relation to the light change how the light 'casts a shadow' onto the set. The light casting through the barn creates an umbra and penumbra region based on that size and location. The Viewer Modifier guides show you the umbra and penumbra regions as you re-size the light or move the barn. When trying to understand what it's doing, look at the shape of the barn where it begins (the window the light travels through). The edge of that shape in space in relation to the light size and distance determines the umbra and penumbra size.

Two main things that change the quality of the light's umbra and penumbra:

  1. Size of Light
    1. A small light traveling through the barn shape casts a sharp shadow (small penumbra) and has a bigger umbra.
    2. A large light traveling through the barn shape casts a soft shadow (large penumbra) and shrinks the umbra.
  2. Distance of Barn from Light:
    1. A barn close to the light creates a large umbra.
    2. A barn far from the light creates a small umbra.

Increasing the edge

Out of the box, the physically based barn has the edge parameter set to 0. You see falloff on a surface from your light because it's an actual shadow. That shadow softness is based on the light size/barn position as explained above, not the edge parameter setting. Think back to the idea that the barn opening is just a physical primitive. The edge parameter acts like a transparency slide outside of the edge of the barn. It allows light to pass through, but won't change the size of the penumbra (won't change shadow sharpness/softness).

When you start increasing edge, you will see one new guide ring show up in the Viewer. This is the end of the penumbra for the edge region. This ring is where the light no longer has an affect. 

The most important things to know about the edge parameter:

Viewer Modifier Guides

 

Shaping Guide

 umbrapenumbrashadows
move barn away from lightsize decreasessize decreasestighter shadows
move barn towards lightsize increasessize increasessofter shadows

increase light size

size decreasessize increasessofter shadows
decrease light sizesize increasessize decreasestighter shadows
radius/width/height size increasesize increasessize stays the sameshadows stay the same
radius/width/height size decreasesize decreasessize stays the sameshadows stay the same
edge increasesize stays the samesize increasesshadows stay the same
edge decreasesize stays the samesize decreasesshadows stay the same

 preBarn

Skewing

Gotchas

Analytic Barn

Summary

Analytic Barns are very straight forward to use, but do not provide the same physical shadows that Physical Barns provide. See the PxrBarnLightFilter documentation for examples of how the Analytic Barn parameters affect the light shape.