Glossary · Materials & lighting

HDRI and image-based lighting

In short

Image-based lighting (IBL) lights a 3D model with a surrounding image of an environment rather than only individual lamps. Often this is an HDRI, a panoramic image with a high dynamic range. Reflections and soft light then look natural [1][2].

Why environment light matters so much

Metal, paint and glass mostly show what they reflect. Without an environment a chrome part looks black or flat. With a suitable environment, highlights, reflections and gradients appear, and these are what make the material recognisable. For its extended material, the three.js documentation explicitly recommends always setting an environment map [3].

HDRI

An HDRI (high dynamic range image) stores brightness far beyond what an ordinary photo captures, such as the sun next to a shadow. Wrapped around the scene, it supplies light from every direction.

How the browser turns it into light

For rough and smooth surfaces to respond correctly, the environment is pre-filtered. In three.js the PMREMGenerator creates an environment map whose levels are pre-computed from mirror-smooth to fully rough [1]. Filament classes such image-based lights as indirect lighting [2].

Studio rather than landscape

For products a neutral studio environment is often better than a landscape: it does not tint the product and does not distract. The two examples below do not load an HDRI photo; they build a simple studio environment in the browser and filter it with PMREM, which saves downloading a large image. They are the spiral stair configurator and the planetary gearhead (fictional products).

What to watch

  • The brightness and colour of the environment change how your product colours look. Check colours against real samples.
  • Large HDRI files cost loading time. A small or generated environment is often enough for reflections.
  • Shadows on the floor usually come from an extra light or from baking, not from the environment alone.

The 3D product viewer page shows how lighting fits into a viewer project.

Related terms

  • PBR (physically based rendering)

    PBR (physically based rendering) is a rendering approach that describes materials with physically motivated values such as base colour, metalness and roughness. They then look believable under changing light and similar across different viewers.

  • Tone mapping

    Tone mapping translates the brightness values of a 3D scene into a screen's range so highlights do not blow out. three.js offers ACES Filmic, AgX and Neutral among others; Khronos PBR Neutral (2024) keeps product colours close to the base colour.

  • Baking

    Baking means storing expensively computed lighting or surface information in image files (textures) in advance. The browser then only displays it instead of recalculating it every frame.

  • Real-time rendering

    Real-time rendering produces images fast enough for a 3D model to respond smoothly to input, usually by rasterisation as in Blender's EEVEE. Offline rendering spends as long as needed per image, for example path tracing in Cycles. Browser configurators render in real time.

Examples to try

Example configurator · fictional product

Spiral stair configurator

Plan a spiral stair: enter floor height and opening, treads and rotation are calculated, choose diameter, direction, railing and materials – with an example check and a PDF enquiry.

Stairs & access · Dimensions and sizes · Materials and finishes · Options, modules and accessories

Example configurator · fictional product

Planetary gearhead

A planetary gearhead for sales and training: running drive with adjustable input speed, cut-away and exploded views, item numbers and technical data as sample values.

Industrial cells & machines · Opening and mechanism · Exploded or cut-away view · Notes on the model

Sources

  1. three.js docs: PMREMGenerator
  2. Filament: Physically Based Rendering in Filament
  3. three.js docs: MeshPhysicalMaterial

← All terms in the glossary