SSGI Lightmap Demo
A demo showing scenes using SSGI and Lightmaps.

This example demonstrates two global illumination techniques available in Qt Quick 3D: Screen Space Global Illumination (SSGI) and baked lightmaps. It allows comparing the visual differences and performance characteristics of real-time and precomputed lighting.
The application includes three common test scenes used to evaluate rendering:
- Cornell Box - A classic lighting test setup highlighting diffuse color bleeding and indirect illumination.
- Bedroom - An indoor environment with soft, warm lighting and a mixture of materials and occluded spaces.
- Sponza Atrium - A large architectural test scene with drapery, arcades, and multiple layers of indirect lighting.
Each scene provides a number of predefined camera positions. A built-in Demo mode automatically cycles through these viewpoints to show how the lighting behaves from different angles.
The lighting mode can be changed at runtime to one of the following:
- SSGI - Enables real-time, screen-space global illumination. This is controlled through the ssgiEnabled property of ExtendedSceneEnvironment. SSGI offers dynamic indirect lighting suitable for interactive and animated content, at some performance cost and with approximations inherent to screen-space techniques.
- Baked Lightmaps - Uses precomputed direct, indirect, or both lighting stored in texture lightmaps. Lightmap baking is performed offline by the Qt Quick 3D Lightmap Baker. See Lightmap Baking for details. This provides high-quality, path-traced illumination with very low runtime cost, best suited for mostly static environments.
- Off - Disables both SSGI and baked lightmaps for comparison against direct lighting only.
See also ExtendedSceneEnvironment::ssgiEnabled, Qt Quick 3D Lightmap Baking, and All Qt Examples.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.