Glossary · Materials & lighting

Baking

In short

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 [1].

What gets baked

The Blender manual names three common purposes [1]:

  • Textures for export, such as base colour or normal maps, for example from a detailed model onto a reduced one.
  • Ambient occlusion or procedural patterns as a base for further editing.
  • Light maps that provide indirect light or speed up rendering in real-time applications.

A UV map is required, because the result lands in an image that sits on the model through the UVs [1].

Why baking helps on the web

Soft shadows, contact shadows in joints or indirect light are expensive in real time. As a texture they cost almost nothing: loaded once, simply displayed. glTF provides a dedicated occlusion texture whose red channel indicates how much indirect light a spot receives [2].

The limit in a configurator

Baked light is fixed. If a visitor changes dimensions, parts or layout, baked shadows no longer fit. For configurators this means:

  • Good to bake: detail within a part that never changes, such as joints in a panel or embossing.
  • Poor to bake: shadows between parts that move, grow or are swapped.

Many parametric models therefore use real-time shadows instead of baked light. The spiral stair configurator (example configurator, fictional product) computes shadows in the browser and only updates them when something changes.

The 3D configurator page shows how such choices fit into a project.

Related terms

  • Texture maps

    Texture maps are images that assign material properties point by point across a 3D surface: colour, surface structure, roughness, metalness or shading. They sit on the model through UV coordinates.

  • Ambient occlusion (AO)

    Ambient occlusion (AO) describes how much a point is shielded from ambient light; corners and joints get darker. In glTF, AO lives in an occlusion texture whose red channel gives the indirect light. AO is often baked in advance.

  • UV mapping

    UV mapping is the unwrapping of a 3D surface into a flat 2D layout so that an image (texture) sits correctly on it. Each vertex of a face gets a U/V coordinate in the image.

  • Ray tracing and path tracing

    Ray tracing produces an image by following rays of light through the scene: where they hit, reflect, refract or are blocked. Path tracing is a form of it that averages many random light paths and so produces highly realistic images.

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

Sources

  1. Blender Manual: Render Baking
  2. Khronos Group: glTF 2.0 Specification

← All terms in the glossary