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.
| Component | Role | Typical form |
|---|---|---|
| Environment map | Stores incoming light per direction | Equirectangular HDR panorama |
| Projection | Maps directions to image pixels | Latitude-longitude or cube map |
| Importance sampling | Sends more samples toward bright areas | Built into path tracers |
| Background visibility | Decides whether the camera sees the map | Toggle per ray type |
| Rotation and intensity | Aligns and scales the lighting | Angle in degrees, exposure multiplier |
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.
| Resolution | Typical use | Limitation |
|---|---|---|
| 1K to 2K | Diffuse lighting, real-time previews | Blurry reflections |
| 4K to 8K | General product and scene renders | Background still soft |
| 16K and above | Sharp reflections on mirror surfaces | Large files, slow loading |
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.
| Aspect | Offline path tracing | Real-time rendering |
|---|---|---|
| Sampling | Direct per-ray lookup | Precomputed filtered maps |
| Shadows from the map | Accurate, soft | Approximated or from a separate sun light |
| Reflections | Exact for any roughness | Prefiltered by roughness level |
| Cost per frame | Seconds to hours | A few milliseconds |
| Local variation | Handled by ray tracing | Requires reflection probes |
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.
| Situation | Recommended approach | Reason |
|---|---|---|
| CG object in a photographed plate | HDR from the same location plus shadow catcher | Matches real light and shadows |
| Studio product render | Studio HDR plus area lights for accents | Clean reflections with art control |
| Interior scene | Exterior HDR through windows plus portal lights | Reduces noise from small openings |
| Real-time game level | Sky map plus local reflection probes | Handles occlusion indoors |
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.