Definition: Baking is the precalculation of complex image information such as lighting, shadows or surface details and its storage in textures. Information that the software would otherwise have to calculate again for each frame is generated once offline and then only read. Baking is a standard technique to make real-time rendering realistic and fast at the same time.
English: Baking, Texture Baking, Light Baking
German: Baking, Vorberechnung, Einbacken
How It Works
A bake process calculates a value for each point of the surface and writes it to an image through the UV coordinates. This requires clean UVs without overlaps. Common bake types:
- Lightmaps: Direct and indirect light of a static scene, including soft shadows.
- Ambient occlusion (AO): Darkening in corners, joints and gaps, where less ambient light reaches. This makes component boundaries easier to read. The glTF 2.0 format has a separate occlusion texture for this.
- Normal maps: Details of a high-resolution model (knurling, holes, cast structures) are transferred to a simplified model. The surface looks detailed, although the geometry stays light.
- Color and material data: Several materials are combined into one texture to save draw calls.
The disadvantage: baked light is static. When a component moves or the lighting changes, the shadow no longer matches. This is why many projects combine baked AO with dynamic light.
Importance in Mechanical Engineering
- Web and mobile viewers: Models derived from CAD run in the browser through WebGL or on tablets with only limited computing power. Baked AO and normal maps allow strong polygon reduction without a flat look.
- VR training: Standalone headsets must keep high frame rates. Precalculated light reduces the load on the GPU.
- Virtual showrooms and trade shows: Halls and booths are static and are well suited for lightmaps. The machines in them often use dynamic light.
- Configurators: Changing variants make baking more difficult. Here, baking is usually done per component, not for the whole scene.
Frequently Asked Questions (FAQ)
Must you bake again after each design change?
Yes, for the changed components. An automated bake step in the pipeline keeps the effort low.
Does baking increase the file size?
Additional textures use memory. With compressed formats such as KTX2 and a suitable resolution, the increase is usually smaller than the savings in geometry.
