- [page:String url] — required
- [page:Function callback] — required. Will be called when load completes. The arguments will be the loaded [page:Object3D] and the loaded [page:Array materials].
- [page:String texturePath] — optional. If not specified, textures will be assumed to be in the same folder as the Javascript model file.
-
- [page:JSONLoader context] — The [page:JSONLoader] instance
- [page:String url] — required
- [page:Function callback] — required. This function will be called with the loaded model as an instance of [page:Geometry geometry] when the load is completed.
- [page:String texturePath] — Base path for textures.
- [page:Function callbackProgress] — Will be called while load progresses. The argument will be an [page:Object] containing two attributes: .[page:Integer total] and .[page:Integer loaded] bytes.
-
-
- Begin loading from url and call callback with the parsed response content.
-
+ [page:String url] — required
+ [page:Function callback] — required. Will be called when load completes. The arguments will be the loaded [page:Object3D] and the loaded [page:Array materials].
+ [page:String texturePath] — optional. If not specified, textures will be assumed to be in the same folder as the Javascript model file.
+