How to use the ColladaLoader function from three

Find comprehensive JavaScript three.ColladaLoader code examples handpicked from public code repositorys.

57
58
59
60
61
62
63
64
65
66
    return mesh;
},

dae: async function(file){
    let promise = new Promise(function(resolve, reject) {
        let loader = new THREE.ColladaLoader();
        loader.load( file , function ( collada ) {
            let mesh = collada.scene;
            resolve(mesh);
        });
fork icon2
star icon4
watch icon1

541
542
543
544
545
546
547
548
549
550
551


var onError = function( xhr ) {
	console.error( xhr );
};
//var loader = new THREE.ObjectLoader();
var loader = new THREE.ColladaLoader( manager );
//var loader = new THREE.FBXLoader( manager ); // create a new loader to load collada files and use the download manager
loader.load( myScene.fileToLoad , 
function( object ) {
	console.log(object);
fork icon0
star icon0
watch icon0

+ 2 other calls in file

19
20
21
22
23
24
25
26
27
28
29
30


// TODO: Eventually include these only if they are needed by a component.
require('three/examples/js/loaders/OBJLoader');  // THREE.OBJLoader
require('three/examples/js/loaders/MTLLoader');  // THREE.MTLLoader
require('three/examples/js/BlendCharacter');  // THREE.BlendCharacter
require('three/examples/js/loaders/ColladaLoader');  // THREE.ColladaLoader
require('../../vendor/VRControls');  // THREE.VRControls
require('../../vendor/VREffect');  // THREE.VREffect


THREE.ColladaLoader.prototype.crossOrigin = 'anonymous';
fork icon0
star icon0
watch icon0

+ 7 other calls in file

18
19
20
21
22
23
24
25
26
27
28
29
}


// TODO: Eventually include these only if they are needed by a component.
require('../../node_modules/three/examples/js/loaders/OBJLoader');  // THREE.OBJLoader
require('../../node_modules/three/examples/js/loaders/MTLLoader');  // THREE.MTLLoader
require('../../node_modules/three/examples/js/loaders/ColladaLoader');  // THREE.ColladaLoader
require('../../node_modules/three/examples/js/controls/VRControls');  // THREE.VRControls
require('../../node_modules/three/examples/js/effects/VREffect');  // THREE.VREffect


module.exports = THREE;
fork icon0
star icon0
watch icon0

+ 3 other calls in file

11
12
13
14
15
16
17
18
19
20
require('../../lib/AnimationHandler.js')(THREE);

var View = function(domElem) {
    this.domElem = domElem;
    this.scene = new THREE.Scene();
    this.loader = new THREE.ColladaLoader();
    this.loader.options.convertUpAxis = true;

    this._addRenderer();
    this._setEvents();
fork icon0
star icon0
watch icon1

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)