API Docs for: 2.7.3
Show:

OBJExporter Class

Module: Wanaplan

An OBJ/MTL scene exporter.

Item Index

Methods

Methods

Export

(
  • meshes
  • options
  • completeCallback
)
static

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 | Array

    An array of meshes or a single mesh.

  • options Object

    An object with options: - assetPath {String} The relative path for textures - leftHand {Number} Set to 0 for Left hand system or 1 for Right 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 to true to generate a MTL file which contains material informations - texturesEnabled {Boolean} Set to true to export a zip file with textures. - exportAllTextures {Boolean} Set to true to export all textures type (bump, environment, etc.) - blenderCompat {Boolean} Set to true to be combatible with Blender (notice that Blender allow up to 18 textures per model).

  • completeCallback Function

    A method called when the process is done.

getMenuItem

(
  • options
)
Object static

Gets options displayed in the menu.

Parameters:

  • options Object

    A 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:

Object:

Returns an object ready to add to the menu.