Lightmap Baker: Bake Light and Shadows Into a Texture
Drop a model, a room, a building or a whole scene. The page unwraps a second UV set with no overlaps, traces sun and sky light with soft shadows for every texel, and shows the baked result in 3D. Move the sun and bake again in seconds. Download a GLB that looks lit in any viewer with no lights at all, or the lightmap PNG and a UV2 model for three.js. Nothing is uploaded.
How to bake a lightmap
- 1
Drop the model
A .glb/.gltf, .obj (with its .mtl and textures), .fbx, .stl or .ply. Every mesh is kept, with its colours and textures. Or try the sample courtyard.
- 2
Set the light
Turn the sun around the model and raise or lower it, make the shadows sharp or soft, and set how bright the sky is. Add a floor if the model has none, so it casts a shadow.
- 3
Bake
A second UV set is laid out, then the light is traced on your own computer, in a background thread so the page stays smooth. Switch the 3D view between the baked result, the light alone and the original.
- 4
Download
The lit GLB, the baked texture, the lightmap PNG, the model with its second UV set, or a ZIP with all of them and a three.js snippet.
What the download holds
One file to use anywhere, plus the pieces for engines that put a lightmap over the original materials:
| NAME-baked.glb | The model with one unlit material whose texture holds the colours and the light. It looks the same in every viewer, engine or AR app, with no lights in the scene. Best for the web, phones and VR. |
|---|---|
| NAME-baked.png | That texture on its own: colour times light, read through the second UV set. |
| NAME-lightmap.png | The light alone (sun, sky and shadows, no colours), for engines that multiply a lightmap over the normal materials. The PNG stores light divided by 2, so bright spots are not clipped. |
| NAME-uv2.glb | The model with its own materials and textures plus the second UV set (TEXCOORD_1) that lightmap.png is laid out on. |
| README.txt and lightmap-three.js | How the files fit together, and a short three.js snippet that loads the UV2 model and puts the lightmap on every material. |
The limit, plainly: this traces sun and sky light with soft shadows, not light that bounces between surfaces, so a closed room lit only through a window comes out darker than in Blender or Unreal. Baked light does not move: if the model or the sun moves in your app, bake again. Animated models are baked in one pose.
Need the building or room first?
Make a 3D model from a text prompt or a photo with AI, then bring it here to bake its light and shadows. The AI generator uses credits; this tool does not.
More free 3D tools
Lightmap baker FAQ
Lightmaps are baked in your browser on your own computer. Downloads are free for personal and commercial use, no attribution needed. Blender, Unity, Unreal Engine, Babylon.js and three.js are named only to describe compatibility; The3DAI is not affiliated with or endorsed by them.