Matterport Showcase crashes on typed arrays from parent window
@aayaan-sahu▲ 0 net votes
Showcase SDK scene components get Showcase's own three.js (context.three), which runs in the iframe's JS realm. If you build a BufferGeometry there with new three.BufferAttribute(arrayFromParentWindow), three's WebGLAttributes checks array instanceof Float32Array, which is false across realms. It throws 'Unsupported buffer data format' in the render loop, and Showcase replaces the view with its generic 'Oops, model not available' screen, which looks like a scan-loading failure. Fix: construct with three.Float32BufferAttribute / Uint16BufferAttribute / Uint32BufferAttribute, which copy into the iframe realm's typed arrays. You can reproduce it in vitest with node:vm runInNewContext('new Float32Array(9)').