diff --git a/docs/api/loaders/SceneLoader.html b/docs/api/loaders/SceneLoader.html deleted file mode 100644 index b7a169a9cdeecaee676aee940e6f2322ebc5a741..0000000000000000000000000000000000000000 --- a/docs/api/loaders/SceneLoader.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - -

[name]

- -
A loader for loading a [page:Scene] from a JSON resource.
- - -

Constructor

- -

[name]( [page:LoadingManager manager] )

-
- [page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager]. -
-
- Creates a new [name]. -
- -

Properties

- - -

Methods

- -

[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )

-
- [page:String url] — required
- [page:Function onLoad] — Will be called when load completes. The argument will be an [page:Object] containing the loaded components.
- [page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.
- [page:Function onError] — Will be called when load errors.
-
-
- Begin loading from url and call onLoad with the parsed scene. -
- -

[method:Object parse]( [page:Object json], [page:Function callbackFinished], [page:String url] )

-
- [page:Object json] — The JSON structure to parse.
- [page:Function callbackFinished] — Will be called when parse completes.
- [page:String url] — Will be used as base for assets' relative URLs.
-
-
- Parse a JSON scene description and return a new [page:Object] with fully instantiated Three.js objects. -
- -

[method:null setCrossOrigin]( [page:String value] )

-
- [page:String value] — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS. -
- -

[method:null addGeometryHandler]( [page:String typeID], [page:Function loaderClass] )

-
- [page:String typeID] — The type to handle.
- [page:Function loaderClass] — The handler class.
-
-
- Add an handler for a specific geometry type. -
- -

[method:null addHierarchyHandler]( [page:String typeID], [page:Function loaderClass] )

-
- [page:String typeID] — The type to handle.
- [page:Function loaderClass] — The handler class.
-
-
- Add an handler for a specific object type. -
- - -

Example

- - - // instantiate a loader - var loader = new THREE.SceneLoader(); - - // Handle STL geometries - loader.addGeometryHandler( "stl", THREE.STLLoader ); - - // Handle OBJ objects - loader.addHierarchyHandler( "obj", THREE.OBJLoader ); - - // load a JSON resource - loader.load( - // resource URL - 'scenes/test_scene.js', - // Function when resource is loaded - function ( result ) { - scene.add( result.scene ); - }, - // Function called when download progresses - function ( xhr ) { - console.log( (xhr.loaded / xhr.total * 100) + '% loaded' ); - }, - // Function called when download errors - function ( xhr ) { - console.log( 'An error happened' ); - } - ); - - - [example:webgl_loader_scene] - - -

Source

- - [link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/SceneLoader.js examples/js/loaders/SceneLoader.js] - - diff --git a/docs/list.js b/docs/list.js index 0c5258ac8a49e79eb1198799c5920c5adec189f1..7a71ca4fe447e73a1947bbbab8bc7a47abbe57ab 100644 --- a/docs/list.js +++ b/docs/list.js @@ -63,7 +63,6 @@ var list = { [ "ObjectLoader", "api/loaders/ObjectLoader" ], [ "PDBLoader", "api/loaders/PDBLoader" ], [ "SVGLoader", "api/loaders/SVGLoader" ], - [ "SceneLoader", "api/loaders/SceneLoader" ], [ "TextureLoader", "api/loaders/TextureLoader" ], [ "TGALoader", "api/loaders/TGALoader" ], [ "XHRLoader", "api/loaders/XHRLoader" ] diff --git a/editor/index.html b/editor/index.html index 69e361b686bfa504dbd616c5e70813030fa3204e..51544dfce46c3cbd21bc46df36330b738b7e2549 100644 --- a/editor/index.html +++ b/editor/index.html @@ -19,7 +19,6 @@ - @@ -30,6 +29,8 @@ + + diff --git a/examples/js/loaders/SceneLoader.js b/examples/js/loaders/deprecated/SceneLoader.js similarity index 100% rename from examples/js/loaders/SceneLoader.js rename to examples/js/loaders/deprecated/SceneLoader.js diff --git a/examples/webgl_loader_scene.html b/examples/webgl_loader_scene.html index 92055ca3f6bb0758e2d96610f2a8d113cd5cb39d..eb726d28b2045d4ecbe74ce137b16be0ca9c2af8 100644 --- a/examples/webgl_loader_scene.html +++ b/examples/webgl_loader_scene.html @@ -109,7 +109,7 @@ - +