Metlivi Studio

How to Plan Cast Shadows From a Light Source Outside the Frame

To plan cast shadows from an off-frame light source, place the source in the scene beyond the crop, establish the receiving surface, and project light paths through the objects onto that surface. Then decide how soft the shadow edges should be. The frame limits what the viewer sees; it does not limit the lighting geometry.

This guide is for an illustrator or visual creator planning one scene with a dominant hidden light. The practical task is to make a box and a cylinder cast believable, coordinated shadows—even though the lamp or window producing them never appears.

Establish the surface before choosing a shadow direction

Start with three elements: the object blocking the light, the surface receiving the shadow, and the source illuminating them. A cast shadow occupies a receiving surface where the object interrupts the path to the source. Scratchapixel’s Light and Shadows explains this through visibility tests between surface points and lights.

For a first construction, use opaque objects on one flat tabletop. Mark their footprints and establish the table’s perspective before drawing shadow shapes. This gives every projected point a definite place to land.

Imagine a cream-colored box beside a blue cylinder on a pale table. Leave open space to their right for the shadows. On a larger planning sketch, place the hidden source to the left, above the tabletop, and slightly behind the objects. Record those three relationships separately: left or right, above or below, and nearer to or farther from the camera.

“Light from the upper left” is useful shorthand, but it leaves depth unresolved. Two sources can occupy the same apparent direction while producing different shadow lengths because they sit at different heights and distances.

Choose whether the hidden source is nearby or distant

Before refining the silhouettes, choose the source model. A nearby compact lamp sends rays outward from a position. A distant directional source uses effectively parallel rays. These produce different relationships between neighboring shadows, as illustrated in Scratchapixel’s Point and Spot Lights and Distant Lights.

Intended appearance Planning model Main decision
A compact lamp just beyond the crop Nearby point-source approximation Give the source a definite position and height
Sunlight crossing the scene Distant directional source Keep the light-ray direction consistent throughout the scene
A broad luminous panel outside the crop Area source Establish a central direction, then allow for a soft transition at shadow edges

Do not force nearby-source shadows into identical directions. Their paths spread away from the source’s position. Conversely, avoid making sunlight behave as though it originates a few centimeters outside the picture.

Keep scene geometry separate from its appearance through the camera. Parallel directions in three dimensions can converge in a perspective image; directions parallel to the image plane remain parallel. The perspective explanation in Single View Metrology supports this distinction. Judge a shadow against the table’s perspective rather than requiring every shadow edge to have the same angle on the page.

Construct the shadow with a light position and its tabletop projection

For the nearby lamp example, use a point-source approximation to establish the shadow’s underlying shape. The following construction derives from straight light paths and perspective projection; softness comes later.

Name the source L and the point directly beneath it on the tabletop plane G. Both can remain outside the final crop. Choose one upper corner of the box, P, and identify the point directly beneath that corner on the tabletop, B.

  1. Draw a construction line from L through P, continuing beyond the corner.
  2. Draw a second line from G through B, continuing away from G across the table.
  3. Their intersection is S, the shadow position of corner P.
  4. Repeat for the other upper corners.
  5. Trace the outside boundary of the combined projected shape and the box’s footprint.

The two lines describe the same light path in different ways: one passes through the elevated corner, while the other establishes its direction across the receiving plane. Use an enlarged planning canvas if their intersection falls outside the picture.

For the cylinder, sample several points around its upper rim and project them using the same source. Add more samples where the contour turns, then connect the resulting outer boundary smoothly. The tabletop shadow is a projection of the cylinder’s volume; simply stretching its visible outline can miss that relationship.

These instructions assume a flat receiver and a source above the sampled points. A ray parallel to the table has no finite intersection with it, and a ray traveling upward beyond the object will not reach that tabletop. Check those conditions before searching for a missing intersection.

Use a side-view calculation to control shadow length

A small side-view diagram can resolve whether your chosen lamp position produces the length you want. Use it before committing to a detailed perspective drawing.

For an upright object on a level surface, let h be the object’s height, H the compact source’s height above that surface, and D the horizontal distance from the source’s ground projection to the object’s base. When H > h, similar triangles give the distance s from the base to the shadow of the object’s top:

s = h × D ÷ (H − h)

As an original illustrative example, use a 20 cm upright marker, a source 80 cm above the table, and a horizontal source-to-base distance of 60 cm. The top’s shadow lands 20 × 60 ÷ (80 − 20) = 20 cm beyond the base, away from the source.

Keeping the other values fixed, raising the source to 140 cm reduces that extension to 10 cm. This gives you a concrete revision choice: raise the hidden lamp when the shadow occupies too much tabletop. The calculation follows the same positional ray geometry described in Point and Spot Lights.

These are scene distances, not pixel measurements. Transfer the result through the table’s perspective. The formula also describes one vertical segment; it does not replace projecting the box’s corners or the cylinder’s curved rim.

Plan softness from the source’s apparent size

Once the shadow direction and extent work, decide how much of the source is visible around the blocking object. An area emitter supplies light from many positions, producing a transition between fully blocked and illuminated regions. AMD’s Area Light documentation describes this surface-based emission, while Area Lights: Mathematical Foundations explains partial visibility of the emitter.

For the box-and-cylinder scene, compare two deliberate looks. A compact lamp can produce an easily traced silhouette. A broad panel can produce a softer boundary that makes the projected shape less explicit. With source position and other conditions held constant, increasing emitter size broadens the penumbra, as demonstrated in Physically Based Rendering’s Area Lights chapter.

To plan changing softness, trace rays from opposite edges of the emitter through one selected object edge. Their intersections with the table indicate the transition’s spread in that cross-section. Repeat near the object and farther along the shadow instead of applying one uniform blur to the entire shape.

Keep the initial corner construction as a guide to placement, but do not treat it as an exact boundary for a broad source. The final transition depends on the source’s extent and orientation as well as the object-to-surface relationship.

Reconstruct the shadow when it reaches another surface

If the shadow crosses from the tabletop onto a vertical backdrop, establish the backdrop as a second receiving plane. Continue the relevant light paths until they intersect it. A shape that changes direction at the table–backdrop junction can be geometrically consistent because it is now projected onto a differently oriented surface.

For example, place the cylinder near a backdrop behind the table. First determine which rays reach the table and which reach the backdrop. Mark their intersections on each plane, then connect the corresponding shadow boundaries at the junction. Avoid drawing a complete tabletop shadow and bending its final section upward by eye.

This is an application of the same visibility principle used in Light and Shadows: the receiving point must have its path toward the light blocked by the object. Each change of receiving surface requires another intersection check.

Check the result by tracing backward toward the hidden light

Before finishing, test the construction from the shadow toward its source. This reverses the planning process and helps locate inconsistent choices without redrawing everything.

As an optional practical test, arrange a plain box and cylinder on a tabletop with one lamp outside the camera view. Compare a compact source with a broader emitter while keeping the composition similar. Alternatively, make a simple 3D preview using the same object heights, receiver, camera, and source position as the plan. Treat this as a comparison to perform, rather than evidence that your particular composition has already been tested.

Finish by removing the construction lines and reviewing the picture at its intended size. The hidden source should remain understandable through the agreement between shadow direction, length, surface changes, and edge softness. If one relationship fails, return to that decision in the plan before adding more detail.

Sources