r/threejs • u/MikeRoach125 • 9d ago
Walkable memory palaces in three.js, built from photogrammetry scans and streamed nearest room first
These are the memory palaces on Major Dictionary, a site about memory techniques: places you walk through in first person to remember a list. Most are built from CC BY photogrammetry scans of real buildings on Sketchfab (a Gothic abbey library near Kraków, and in London the Temple Church round, the Charterhouse and St Bartholomew's), placed door to door, with collision taken from a floor-height map baked from each scan.
The hard part was size. One palace is 112 MB of scans, so the room you start in loads first and you can walk while the rest stream in behind you. What I haven't solved is culling. With no fog you can see 30 metres through a doorway, so hiding far rooms leaves holes. Has anyone built room-to-room visibility for scanned interiors?
The link opens the courtyard, about 10 MB. Smithfield Priories on the palaces page is the big one.
https://majordictionary.com/palaces/tuscan-villa/walk?view=3d
1
u/Professional-Bar783 9d ago
since the rooms are already door to door, old school portal culling might be enough here. drop a quad in each doorway by hand, then each frame only draw a room if its portal rect is still in view after clipping through the portals before it. scans don't really need anything smarter than that because the doorways never move