OBJExporter Class
An OBJ/MTL scene exporter.
Item Index
Methods
- Export static
- getMenuItem static
Methods
Export
-
meshes
-
options
-
completeCallback
Exports a scene into a zip package with obj/mtl files and textures. (http://en.wikipedia.org/wiki/Wavefront_.obj_file)
Parameters:
-
meshes
BABYLON.Mesh | ArrayAn array of meshes or a single mesh.
-
options
ObjectAn object with options: - assetPath {String} The relative path for textures - leftHand {Number} Set to 0 for
Left hand
system or 1 forRight hand
sysytem. - precision {Number} The precision of vertex data (default is 100). - filename {String} The desired file name - scaleFactor {Number} The desired scale factor - materialsEnabled {Boolean} Set totrue
to generate a MTL file which contains material informations - texturesEnabled {Boolean} Set totrue
to export a zip file with textures. - exportAllTextures {Boolean} Set totrue
to export all textures type (bump, environment, etc.) - blenderCompat {Boolean} Set totrue
to be combatible with Blender (notice that Blender allow up to 18 textures per model). -
completeCallback
FunctionA method called when the process is done.
getMenuItem
-
options
Gets options displayed in the menu.
Parameters:
-
options
ObjectA dictionary with default options for this exporter - filename {String} - scaling {Number} - precision {Number} - leftHand {Boolean} - merged {Boolean} - materialsEnabled {Boolean} - texturesEnabled {Boolean} - exportAllTextures {Boolean} - blenderCompat {Boolean}
Returns:
Returns an object ready to add to the menu.