Rooms I've lived in: an iPhone LiDAR scan rebuilt in Three.js
Before moving out of a short-term rental, I scanned it with my iPhone and rebuilt it in 3D as a site you can walk through.
Before moving out of a short-term rental, I scanned it with my iPhone and rebuilt it in 3D. You can walk through it, open the doors and switch on the lights at rooms.rr2.dev.
Links
- Site: rooms.rr2.dev
- Repo: github.com/r-r-2/rooms
- Music: "Trap Banger" by Alex Morgan, from Pixabay
How it came together
- I scanned it with Scaniverse, a free app that uses the iPhone's LiDAR sensor. I used its Mesh mode for large objects and areas, and exported the scan as GLB and PLY.
- The raw scan was too heavy for a phone browser, so I used it as a reference. Claude wrote a Three.js model from simple boxes, and I checked each room against the scan and sent corrections.
- Most of the time went into details: sliding doors, the glass partition, floor-length blinds, the balcony grill and a mirrored almirah.
What you can do
- Look at it from above, take a one-minute walkthrough, or walk around yourself.
- Doors, lights, curtains, blinds, the fridge and the TV all work.
- Turn on room sound (fridge hum, AC, traffic), all generated in code.
Stack
- Three.js with no build step.
- Hosted on Cloudflare Pages, deployed from GitHub.
- Cookieless Google Analytics.
- The launch video is filmed from the site frame by frame and cut to the beat in HyperFrames. It ends on the end card from my design system.
I did most of this from the Claude app on my phone, while travelling and walking around a mall. I used Claude Opus 5.5 for all of it.
Next
- More places whose layout I like: homes, Airbnbs and hotel rooms.
- My ancestral home. It's already been demolished, and I couldn't scan it back then: my iPhone 13 mini had no LiDAR sensor (the iPhone 17 Pro I used here does). So I'll rebuild it from an old video instead.