+ baseUrl — The base url from which to find subsequent resources.
+ options — Options passed to the created material (side, wrap, normalizeRGB, ignoreZeroRGBs, invertTransparency).
+ crossOrigin — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
+
+ url — required
+ onLoad — Will be called when load completes. The argument will be the loaded [page:MTLLoaderMaterialCreator MTLLoader.MaterialCreator] instance.
+ onProgress — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.
+ onError — Will be called when load errors.
+
+
+ Begin loading from url and return the loaded material.
+
+
+
.parse([page:String text])
+
+ text — The textual obj structure to parse.
+
+
+ Parse a mtl text structure and returns a [page:MTLLoaderMaterialCreator MTLLoader.MaterialCreator] instance.
+
+ url — required
+ onLoad — Will be called when load completes. The argument will be the loaded [page:Object3D object].
+ onProgress — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.
+ onError — Will be called when load errors.
+
+
+ Begin loading from url and return the [page:String text] response that will contain the data.
+
+
+
.parse([page:String text])
+
+ text — The textual obj structure to parse.
+
+
+ Parse an obj text structure and returns an [page:Object3D object].
+ Found objects are converted to [page:Mesh meshs] with a [page:BufferGeometry BufferGeometry] and a default [page:MeshLambertMaterial MeshLambertMaterial].
+
+ url — required
+ onLoad — Will be called when load completes. The argument will be the loaded text response.
+ onProgress — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.
+ onError — Will be called when load errors.
+
+
+ Begin loading from url and return the [page:String text] response that will contain the data.
+
+
+
.setCrossOrigin([page:String value]
+
+ value — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
+
+
+
.setResponseType([page:String value]
+
+ value — the empty string (default), "arraybuffer", "blob", "document", "json", or "text".
+