five-on-it / apps/tools/src/scene-doc
apps/tools/src/scene-doc
A Babylon scene document (the editor's scene folder read by editor-project.ts, or a plain .babylon document) reduced to what the level export needs: every mesh, mesh instance and transform node with its name, its ids, its local transform, its parent and its metadata, and for a mesh its triangles with the colours they are drawn in (the material's diffuse or albedo, one run of triangles per sub-mesh of a multi-material; grey without a material). Lights and cameras are left out. Plain JSON in, so no Babylon engine is needed to read a scene; the transforms are composed by frame.ts.