Creates a new ObjectLoader.
The loadingManager for the loader to use. Default is THREE.DefaultLoadingManager.
Creates a new Loader.
The loadingManager for the loader to use. Default is THREE.DefaultLoadingManager.
The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS. Default is anonymous.
The loadingManager the loader is using. Default is DefaultLoadingManager.
The base path from which the asset will be loaded. Default is the empty string.
The request header used in HTTP request. See .setRequestHeader. Default is empty object.
The base path from which additional resources like textures will be loaded. Default is the empty string.
Whether the XMLHttpRequest uses credentials. See .setWithCredentials. Default is false.
Begin loading from url and call onLoad with the parsed response content.
The path or URL to the file. This can also be a Data URI.
Will be called when load completes. The argument will be the loaded object.
Will be called when load errors.
Begin loading from url and call onLoad with the parsed response content.
The path or URL to the file. This can also be a Data URI.
Parse a JSON structure and return a threejs object. This is used internally by .load() but can also be used directly to parse a previously loaded JSON structure.
required. The JSON source to parse.
Will be called when parsed completes. The argument will be the parsed object.
This is used by .parse() to parse any animations in the JSON structure, using AnimationClip.parse().
required. The JSON source to parse.
This is used by .parse() to parse any geometries in the JSON structure.
required. The JSON source to parse.
This is used by .parse() to parse any images in the JSON structure, using ImageLoader.
required. The JSON source to parse.
This is used by .parse() to parse any images in the JSON structure, using ImageLoader.
required. The JSON source to parse.
This is used by .parse() to parse any materials in the JSON structure using MaterialLoader.
This is used by .parse() to parse any 3D objects in the JSON structure.
required. The geometries of the JSON.
required. The materials of the JSON.
required. The animations of the JSON.
The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
Set the base path for the asset.
key: The name of the header whose value is to be set. value: The value to set as the body of the header. Set the request header used in HTTP request.
Set the base path for dependent resources like textures.
Whether the XMLHttpRequest uses credentials such as cookies, authorization headers or TLS client certificates. See XMLHttpRequest.withCredentials. Note that this has no effect if you are loading files locally or from the same domain.
Generated using TypeDoc
A loader for loading a JSON resource in the JSON Object/Scene format. This uses the FileLoader internally for loading files.
Examples
WebGL / materials / lightmap
Code Example
Ngx3Js Code Example