Sub topic 4
Placing Lamps: Key, Fill and Rim
Assume you can navigate the 3D Viewport, edit objects in the Properties editor, and render a simple scene in Cycles or EEVEE. This chapter uses three lamp roles to shape one subject: the key light, the fill light, and the rim light.
The three-light model
A key light is the main light. It establishes the direction, contrast, and strongest shadows. Place it to one side of the camera and above the subject. A 45-degree horizontal angle is a useful starting point.
A fill light reduces the darkness created by the key. Place it on the opposite side of the camera, usually lower in power. A fill should reveal shadow detail without removing the shadow pattern.
A rim light, also called a back light, separates the subject from the background. Place it behind and above the subject, aimed toward its back or edge. It often creates a narrow highlight along the silhouette.
| Light | Typical position | Relative strength | Main purpose |
|---|---|---|---|
| Key | Front-side and above | 1.0 | Defines form and direction |
| Fill | Opposite front-side | 0.1–0.5 | Controls contrast |
| Rim | Behind and above | 0.3–1.0 | Separates the silhouette |
The ratios are starting points, not fixed rules. Adjust them while watching the rendered image rather than matching numerical values.
Placement workflow
- Frame the subject through the camera.
- Add an Area light for the key. Move it to the front-side, above, and slightly to one side of the subject.
- Rotate the light toward the subject. A Track To constraint is more reliable than manually guessing the rotation.
- Duplicate the approach for the fill. Move it to the other side and reduce its power.
- Add the rim behind the subject. Raise it enough to catch the upper outline without shining directly into the camera.
- Render a preview after changing one light at a time.
An Area light produces softer shadows as its size increases. Distance also matters: moving a light farther away changes both its brightness and the spread of illumination. Keep the key and fill close enough to produce a clear difference between their contributions.
import bpy
from mathutils import Vector
target = bpy.data.objects.get("Subject")
if target is None:
target = bpy.data.objects.new("Subject", None)
bpy.context.collection.objects.link(target)
target.location = (0.0, 0.0, 1.0)
def add_area(name, location, power, size, color):
data = bpy.data.lights.new(name, type="AREA")
data.energy = power
data.shape = "DISK"
data.size = size
data.color = color
light = bpy.data.objects.new(name, data)
bpy.context.collection.objects.link(light)
light.location = location
constraint = light.constraints.new(type="TRACK_TO")
constraint.target = target
constraint.track_axis = "TRACK_NEGATIVE_Z"
constraint.up_axis = "UP_Y"
return light
add_area("Key", (4.0, -4.0, 5.0), 1000.0, 2.0, (1.0, 0.95, 0.9))
add_area("Fill", (-3.0, -2.0, 2.5), 300.0, 3.0, (0.8, 0.9, 1.0))
add_area("Rim", (-2.0, 3.0, 5.0), 700.0, 1.5, (1.0, 0.9, 0.8))Common errors
If the image looks flat, lower the fill power or move it farther away. If the subject is too dark on one side, increase the fill gradually rather than making the key brighter. If the rim creates a white halo, reduce its power, enlarge its Area size, or move it farther behind the subject.
Exercise
Your key light creates strong shadows, but the subject's shadow side is completely black. What should you change first?
Show answer
Increase the fill light modestly or move it closer. Keep the key unchanged so the main direction and shadow pattern remain visible.