room-walkthrough-3dlisted
Install: claude install-skill RaveenDi/Skilloadout
# 3D Room & Interior Walkthroughs
Interiors look fake for three reasons: flat lighting, wrong scale, and robotic camera motion.
Fix those three and a walkthrough feels like a real place.
## 1. Asset pipeline (Blender → web)
1. **Model to real-world scale** (1 unit = 1 m). Door height ~2.1 m, eye height 1.6 m.
2. **Bake lighting**: Cycles bake of combined/diffuse lighting into a *lightmap* (UV2) or bake full textures for static rooms. Baked GI is the #1 realism win and costs nothing at runtime.
3. **Export GLB** with Draco or Meshopt compression; textures to **KTX2 (Basis/UASTC for normals, ETC1S for albedo)**. Target < 10 MB per room, lazy-load adjacent rooms.
4. Keep separate: `room_static.glb` (baked), `props_interactive.glb` (PBR, real-time lit), `nav.glb` (floor collision mesh + camera nodes + hotspot empties).
```js
const gltf = await loader.loadAsync("/rooms/living.glb"); // GLTFLoader + DRACOLoader + KTX2Loader
gltf.scene.traverse((o) => {
if (o.isMesh && o.material.map) o.material.map.colorSpace = THREE.SRGBColorSpace;
if (o.isMesh && o.userData.lightmap) {
o.material.lightMap = lightmaps[o.userData.lightmap];
o.material.lightMapIntensity = 1.0;
}
});
```
## 2. Lighting & look
- Baked lightmap + one `RoomEnvironment`/HDRI for reflections (`scene.environment`), low intensity.
- `ACESFilmicToneMapping` (or AgX), exposure ~1.0; SSAO only if not baked; subtle bloom on windows/lamps.
- Add **window light volume**: a soft additive plane with a noise shad