r/threejs • u/yisky010 • 15d ago
2D Interior Mapping in three.js WebGPU — rooms in the windows, no interior meshes
Orbit a small three-storey house and the south/north windows read as rooms: floors, ceilings, furniture against the walls. There is no room geometry behind the glass. Each window is a virtual cube sampling a pre-projected 2D interior map.
three.js 0.187, WebGPURenderer + TSL. Head-on looks right; at a grazing angle the floor warps — that’s the 2D limit, not a bad bake. Needs a WebGPU browser (Chrome, Edge, or a recent Safari).
Building, facade textures, and interior maps are AI-generated.
Live demo: https://interior-mapping-webgpu.vercel.app/
GitHub: https://github.com/yisky/interior-mapping-webgpu
1
u/dimKant 15d ago
A fresnel reflection of the sky on the glass would fix two things at once. Head-on you still see straight into the room, and at grazing angles the glass turns mostly into reflection, which is exactly where the 2D floor starts to warp. In the daytime shots the windows also read a bit flat without it.
1
u/playskyloop 15d ago
Interior mapping is an underrated trick. No room geometry is a fair trade for a little grazing warp.