mrdoob/three.js — Issue #1284: How to load dae model in the init() function?
Author: fllubo
Created: 2012-02-09 02:09:15+00:00
State: open

I load dae model in init()function but it didn't work,I should load the model and then call init()function in the function colladaReady() like this :colladaReady( collada ) {
dae = collada.scene;
skin = collada.skins[ 0 ];
init();
animate();
} );
what if I want to do like this:
fuction init()
{
colladaReady() like this :colladaReady( collada ) {
dae = collada.scene;
skin = collada.skins[ 0 ];
}
}