Foreground Isolation

Preview of the captured scene: a marble bust on a pedestal. Photo by Kevin Lee on Pexels

Orogen scenes can carry several semantic layers. By default every layer is drawn. To filter them, use the layerMask property. This is a bit mask, so for example, to draw only the foreground layer, set layerMask = OrogenLayers.FOREGROUND. To draw the foreground and the background together, set layerMask = OrogenLayers.FOREGROUND | OrogenLayers.BACKGROUND

DemoForegroundIsolation.ts
import { OrogenLayers, OrogenSplats } from "@orogen/splats";

let splats = new OrogenSplats({
    source: 'https://scan.orogen.dev/capture/7c41ba90-2f18-4de6-b0c7'
});

scene.add(splats);

splats.layerMask = OrogenLayers.FOREGROUND;

splats.onLoad = () => {
    splats.captureCubemap(renderer).then((cubemap) => {
Captured scene rendered in the viewer: a marble bust on a pedestal. Photo by Kevin Lee on Pexels
Controls