We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gltfLoader.load(url, (gltf) => { console.log("strat to load model"); const root = gltf.scene; scene.add(root); root.updateMatrixWorld(); const box = new THREE.Box3().setFromObject(root); const boxSize = box.getSize(new THREE.Vector3()).length(); const boxCenter = box.getCenter(new THREE.Vector3()); frameArea(boxSize * 0.5, boxSize, boxCenter, camera); controls.maxDistance = boxSize * 100; controls.target.copy(boxCenter); controls.update(); getChild(); return "ok" }, onProgress=function ( xhr ) { console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' ); },);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: