Hi all, I’m trying to create a simple 3d viewer for my customer website with threejs.org. Everything is good and getting an excellent testing result.
But I got a problem after go-live data-import. Some of my models cannot appear correctly !! (The problems model can load into ThreeJS Editor.)
After double check with console logging, I’m sure that the lighting and camera are correctly set. And the related mash is added to scene successfully (without any error message).
https://app.box.com/s/22iymcvgcr7gjbqekbgjh745ug644jjn
My Loading Script:
if(scene)scene.dispose();
scene = new THREE.Scene();
scene.background=new THREE.Color(params.background);
var loader=new GLTFLoader(manager);
loader.load(
file,
function( loaded ){
console.log('Loaded, adding scene...');
console.log(loaded);
scene.add(loaded.scene);
console.log('my scene');
console.log(scene);
render();
},);