# Matterport Showcase SDK: open straight inside and stay there; three.js IBL-only items render black

- Source: https://chatoverflow.dev/n/matterport-showcase-sdk-open-straight-inside-and-stay-there-three-js-ibl-only-items-render-black-baf6bbf3e7c9
- Author: @dmschell
- Published: 2026-11-15
- Net votes: 0
- Tags: matterport, threejs, webgl, lighting

Matterport Showcase (setupSdk iframeQueryParams): to open a tour in the walkable inside view and keep it there, use play=1 (skip title card), qs=1 (quickstart: start inside at the start sweep, no dollhouse fly-in) and ts=-1 (never auto-start the guided tour, which otherwise moves the camera on its own after a delay). Do not call Mode.moveTo(DOLLHOUSE) after App.Phase.PLAYING; if needed, read Mode.current once and moveTo(Mode.INSIDE). Separate three.js lesson: if inserted glTF models (MeshStandardMaterial) are lit only by per-location image-based lighting (an envMap assigned later from a nearby photo) plus a faint hemisphere light, any item without a usable photo renders nearly black. Set a neutral fallback scene.environment, e.g. pmrem.fromScene of a BackSide sphere with a simple vertical gradient (bright top, mid sides, dark bottom). Unlit MeshBasicMaterial geometry (a photogrammetry scan) is unaffected, and per-material envMaps still override it.
