GLTFParser class
Methods
assignFinalMaterial (dynamic mesh )
→ dynamic
Assigns final material to a Mesh, Line, or Points instance. The instance
already has a material (generated from the glTF material options alone)
but reuse of the same glTF material may require multiple threejs materials
to accomodate different primitive types, defines, etc. New materials will
be created if necessary, and reused from a cache.
@param {Object3D} mesh Mesh, Line, or Points instance.
assignTexture (dynamic materialParams , dynamic mapName , Map <String , dynamic > mapDef , [dynamic encoding ])
→ dynamic
Asynchronously assigns a texture to the given material parameters.
@param {Object} materialParams
@param {string} mapName
@param {Object} mapDef
@return {Promise}
buildNodeHierarchy (dynamic nodeId , dynamic parentObject , dynamic json , dynamic parser )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#scenes
@param {number} sceneIndex
@return {Promise
createMaterialType (dynamic materialType , Map <String , dynamic > materialParams )
→ dynamic
createNodeMesh (dynamic nodeIndex )
→ dynamic
createUniqueName (dynamic originalName )
→ dynamic
When Object3D instances are targeted by animation, they need unique names.
getDependencies (dynamic type )
→ dynamic
Requests all dependencies of the specified type asynchronously, with caching.
@param {string} type
@return {Promise<Array
getDependency (dynamic type , dynamic index )
→ dynamic
Requests the specified dependency asynchronously, with caching.
@param {string} type
@param {number} index
@return {Promise<Object3D|Material|THREE.Texture|AnimationClip|ArrayBuffer|Object>}
getMaterialType (dynamic materialIndex )
→ dynamic
loadAccessor (dynamic accessorIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#accessors
@param {number} accessorIndex
@return {Promise<BufferAttribute|InterleavedBufferAttribute>}
loadAnimation (dynamic animationIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#animations
@param {number} animationIndex
@return {Promise
loadBuffer (dynamic bufferIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#buffers-and-buffer-views
@param {number} bufferIndex
@return {Promise
loadBufferView2 (dynamic bufferViewIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#buffers-and-buffer-views
@param {number} bufferViewIndex
@return {Promise
loadCamera (dynamic cameraIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#cameras
@param {number} cameraIndex
@return {Promise<THREE.Camera>}
loadGeometries (dynamic primitives )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#geometry
loadImageSource (dynamic sourceIndex , dynamic loader )
→ dynamic
loadMaterial (dynamic materialIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
@param {number} materialIndex
@return {Promise
loadMesh (dynamic meshIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes
@param {number} meshIndex
@return {Promise<Group|Mesh|SkinnedMesh>}
loadNode (dynamic nodeIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#nodes-and-hierarchy
@param {number} nodeIndex
@return {Promise
loadScene (dynamic sceneIndex )
→ dynamic
loadSkin (dynamic skinIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@param {number} skinIndex
@return {Promise
loadTexture (dynamic textureIndex )
→ dynamic
Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#textures
@param {number} textureIndex
@return {Promise<THREE.Texture>}
loadTextureImage (dynamic textureIndex , dynamic sourceIndex , dynamic loader )
→ dynamic
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse (dynamic onLoad , dynamic onError )
→ dynamic
setExtensions (dynamic extensions )
→ dynamic
setPlugins (dynamic plugins )
→ dynamic
toString ()
→ String
A string representation of this object.
inherited