Class: SceneExporter
Defined in: packages/minerender/src/export/SceneExporter.ts:20
Exports the visible meshes at their current poses without changing the source scene.
Constructors
Constructor
new SceneExporter(): SceneExporter;Returns
SceneExporter
Methods
toGLTF()
static toGLTF(root, options?): Promise<ArrayBuffer | Record<string, any>>;Defined in: packages/minerender/src/export/SceneExporter.ts:49
Exports a static glTF/GLB snapshot in a browser. Atlas textures and vertex tints are retained; MineRender's custom directional lighting is not baked into the exported materials.
Parameters
| Parameter | Type |
|---|---|
root | Object3D |
options | SceneGLTFExportOptions |
Returns
Promise<ArrayBuffer | Record<string, any>>
toObj()
static toObj(root): string;Defined in: packages/minerender/src/export/SceneExporter.ts:23
Returns OBJ geometry with normals and UVs; material files and textures are not included.
Parameters
| Parameter | Type |
|---|---|
root | Object3D |
Returns
string
toPLY()
static toPLY(root, options?): string | ArrayBuffer;Defined in: packages/minerender/src/export/SceneExporter.ts:33
Returns PLY geometry with vertex colors and UVs; texture images are not included.
Parameters
| Parameter | Type |
|---|---|
root | Object3D |
options? | PLYExporterOptions |
Returns
string | ArrayBuffer