THREE.JS / FOUNDATIONS 259

Two scenes in. Two scenes out.

GLTFExporter accepts a scene or an array of scenes. This lab exports two authored roots to JSON and GLB, then independently reloads each artifact through GLTFLoader so scene count, animation ownership, and extension metadata are observable.

Initializing -

Preparing two authored Scene inputs and the export matrix.

Authored
-
JSON
-
GLB
-
Loaded
-
Export matrixarray input + nested clips

Run the matrix to create both in-memory artifacts; reload buttons parse the exact bytes through GLTFLoader.

Portable asset contractexport -> load -> compare
source rootswaiting

two independent Scene inputs

JSON glTFnot exported

scene array + nested animations

binary GLBnot exported

same topology, binary payload

loader resultnot loaded

independent parseAsync()

metadatawaiting

custom extension ownership

Each scene owns one clip; the exporter receives [[clipA], [clipB]], not a flat list.

Scene[] -> GLTFExporter.parseAsync() -> JSON/GLB -> GLTFLoader.parseAsync() -> scenes[]

Derived from the official glTF exporter example, GLTFExporter, and GLTFLoader. Use ?forceWebGL=1 for the labeled WebGL2 preview.

AUTHORED ROOTS Scene A / Scene B
RELOADED ROOTS JSON / GLB
LAB 259 / GLTF MULTI-SCENE EXPORT