Image-based lighting

Also known as: IBL

On this page 6

Image-based lighting (IBL) is a rendering technique that illuminates a 3D scene with a panoramic image of real or synthetic surroundings, usually a high dynamic range (HDR) environment map, instead of with individually placed lamps. Each pixel of the panorama is treated as light arriving from one direction, so the scene receives the color, intensity and direction of the captured environment.

In lighting & rendering for 3D graphics & animation, IBL is the standard way to make computer-generated objects match a real location or to give product and character renders natural reflections and soft ambient light. It is supported by virtually every modern render engine, from offline path tracers to real-time game engines.

How image-based lighting works

Image-based lighting works by wrapping an environment map around the scene at infinite distance and sampling it whenever a ray or shading calculation looks toward the surroundings. The map stores radiance values for every direction, typically in an equirectangular projection with a 2:1 aspect ratio or as a cube map with six faces.

The source image must be high dynamic range. A normal 8-bit photograph clips the sun and bright windows at white, so the lighting becomes flat. An HDR panorama, often stored as OpenEXR or Radiance HDR files, preserves a range that can exceed 15 to 20 stops, which keeps the sun many thousands of times brighter than the sky and produces correct shadows and highlights.

The table below shows the main components involved in an IBL setup.

ComponentRoleTypical form
Environment mapStores incoming light per directionEquirectangular HDR panorama
ProjectionMaps directions to image pixelsLatitude-longitude or cube map
Importance samplingSends more samples toward bright areasBuilt into path tracers
Background visibilityDecides whether the camera sees the mapToggle per ray type
Rotation and intensityAligns and scales the lightingAngle in degrees, exposure multiplier
Components of an image-based lighting setup

Capturing and preparing HDR environments

A usable IBL map is captured by bracketing exposures of a full sphere and merging them into one HDR file. Photographers use a panoramic head or a mirrored chrome ball, shooting several exposures spaced one to three stops apart so that both the darkest shadows and the unclipped sun are recorded.

Preparation matters as much as capture. The artist removes the tripod from the nadir, calibrates white balance, checks that the sun has not clipped, and matches the overall exposure to a known reference such as a gray card. Many studios also record a separate high-resolution backplate because a panorama rarely has enough detail to serve as a sharp camera background.

ResolutionTypical useLimitation
1K to 2KDiffuse lighting, real-time previewsBlurry reflections
4K to 8KGeneral product and scene rendersBackground still soft
16K and aboveSharp reflections on mirror surfacesLarge files, slow loading
Common HDR map resolutions and their use

Image-based lighting in offline and real-time rendering

Offline path tracers such as Cycles, Arnold or V-Ray use IBL directly as a light source: every ray that escapes the scene samples the map, and importance sampling concentrates rays toward the sun and other bright regions to reduce noise. This produces physically consistent global illumination, soft shadows and accurate reflections.

Real-time engines cannot trace that many rays per frame, so they prefilter the environment map. The diffuse part is reduced to an irradiance map or spherical harmonics, and the specular part is stored as a mip chain where each level matches a roughness value, a method known as the split-sum approximation. Local reflection probes then capture the environment at several positions in the level.

AspectOffline path tracingReal-time rendering
SamplingDirect per-ray lookupPrecomputed filtered maps
Shadows from the mapAccurate, softApproximated or from a separate sun light
ReflectionsExact for any roughnessPrefiltered by roughness level
Cost per frameSeconds to hoursA few milliseconds
Local variationHandled by ray tracingRequires reflection probes
Offline and real-time IBL compared

Strengths, limitations and common mistakes

The main strength of IBL is fast, believable realism: one map supplies sky, bounce light and reflections that would take dozens of manual lights to imitate. Its main limitation is that the environment is infinitely distant and static, so it cannot produce correct parallax, local shadows from nearby walls or changes when an object moves through a room.

  • Using an LDR image: clipped highlights produce flat, shadowless lighting.
  • Unclipped sun left too small: a tiny, extremely bright sun causes fireflies and noise; many artists replace it with a directional light.
  • Mismatched rotation: shadows in the render point the wrong way compared with the backplate.
  • Ignoring scale: an exterior panorama used indoors gives wrong light direction and color.
  • No shadow catcher: the CG object floats because it casts no shadow onto the real ground.

The decision table below shows when IBL alone is enough and when it should be combined with other lights.

SituationRecommended approachReason
CG object in a photographed plateHDR from the same location plus shadow catcherMatches real light and shadows
Studio product renderStudio HDR plus area lights for accentsClean reflections with art control
Interior sceneExterior HDR through windows plus portal lightsReduces noise from small openings
Real-time game levelSky map plus local reflection probesHandles occlusion indoors
Choosing an IBL strategy

A plain-language summary

Image-based lighting uses a photo of the whole surroundings as the light source. Imagine standing in a field and photographing everything around you, including the sky and the sun. The computer wraps that photo around a 3D object like a giant bubble.

Every bright part of the photo then shines on the object. The sun makes hard shadows. The blue sky adds soft light. Nearby trees appear in shiny surfaces. The object looks as if it really stands in that place.

An example from practice

A visual effects team must add a computer-generated delivery robot to footage of a city sidewalk shot on an overcast afternoon. On set, a technician photographs a chrome ball and a full panorama at the robot’s position with seven exposures spaced two stops apart, then merges them into a 16K HDR file.

In the render engine, the lighting artist loads the panorama as the environment, rotates it to match the camera angle and sets the exposure using a gray card that appeared in the plate. A shadow catcher plane on the ground collects the robot’s soft contact shadow.

The finished shots show the robot with reflections of the actual buildings on its painted panels and shadows that match the real pedestrians, and lighting setup took hours rather than days.