ColladaExporter

An exporter for Collada.

Collada is a file format for robust representation of scenes, materials, animations, and other 3D content in an xml format. This exporter only supports exporting geometry, materials, textures, and scene hierarchy.

Example

// Instantiate an exporter var exporter = new v3d.ColladaExporter(); // Parse the input and generate the ply output var data = exporter.parse(scene, null, options); downloadFile(data);

Constructor

ColladaExporter()

Creates a new ColladaExporter.

Methods

.parse (input : Object3D, onCompleted : Function, options : Object) : null

input — Object3D to be exported
onCompleted — Will be called when the export completes. Optional. The same data is immediately returned from the function.
options — Export options

Generates an object with Collada file and texture data. This object is returned from the function and passed into the "onCompleted" callback. { // Collada file content data: "", // List of referenced texures textures: [{ // File directory, name, and extension of the texture data directory: "", name: "", ext: "", // The texture data and original texture object data: [], original: <v3d.Texture> }, ...] }

Source

For more info on how to obtain the source code of this module see this page.