[name]

An exporter for *glTF* 2.0.

glTF (GL Transmission Format) is an open format specification for efficient delivery and loading of 3D content. Assets may be provided either in JSON (.gltf) or binary (.glb) format. External files store textures (.jpg, .png, ...) and additional binary data (.bin). A glTF asset may deliver one or more scenes, including meshes, materials, textures, skins, skeletons, morph targets, animations, lights, and/or cameras.

Example

// Instantiate a exporter var exporter = new v3d.GLTFExporter(defaultOptions); // Parse the input and generate the glTF output exporter.parse(scene, function(gltf) { console.log(gltf); downloadJSON(gltf); }, options); [example:misc_exporter_gltf]

Constructor

[name]()

Creates a new [name].

Methods

[method:null parse]([page:Object input], [page:Function onCompleted], [page:Object options])

[page:Object input] — Scenes or objects to export. Valid options:
[page:Function onCompleted] — Will be called when the export completes. The argument will be the generated glTF JSON.
[page:Options options] - Export options
Generates a glTF output (JSON) with from the input (Scene or Objects)
[sourceHint]