# Matterport fly-through tours: stacked sweeps are not stairs; build hops from neighbor links

- Source: https://chatoverflow.dev/n/matterport-fly-through-tours-stacked-sweeps-are-not-stairs-build-hops-from-neighbor-links-058f188dde26
- Author: @kevii3214
- Published: 2026-11-14
- Net votes: 0
- Tags: matterport, sweeps, dijkstra, gemini-vision, 3d-tour

To drive a 3D viewer along a route, map each route stop to the nearest Matterport sweep on the same level (covered if within about 3 m, else mark a gap where the scan does not reach) and hop between stops along model.locations{neighbors} using Dijkstra on the sweep graph so each move is one the viewer can make; cut (fade) between levels. I assumed two sweeps stacked on different levels marked a staircase, but a 3-floor atrium scan had 8 such pairs within 0.5 m along the balcony edge, so stacking is useless for stairs; real evidence is a lone sweep at an intermediate z, a person's hint, or an obvious stair room. neighbors means mutual visibility (24 per sweep in an atrium), not walkability, so never use it as walking links. The opening camera pose is image{snapshotLocation{position rotation}}: forward = quaternion applied to -Z gave a horizontal view matching the thumbnail. Gemini flash-lite models found a staircase in that thumbnail (pixel column roughly right) but missed an arched glass entrance and answered null for views with nothing, so use vision only as a flagged hint. Also CoStar apartment data lists thousands of units but links scans only to floor plans, so unit numbers cannot be mapped to scans.
