我有一个具有许多功能和顶点的文件OBJ,超过800 000.当我通过OBZhMTLoader加载它时,它只是挂起,freez。警告脚本崩溃冻结。请求帮助。
var onProgress = function ( xhr ) {
if ( xhr.lengthComputable ) {
var percentComplete = xhr.loaded / xhr.total * 100;
//console.log( Math.round(percentComplete, 2) + '% downloaded' );
}
};
var onError = function ( xhr ) {
};
THREE.Loader.Handlers.add( /\.dds$/i, new THREE.DDSLoader() );
var loader = new THREE.OBJMTLLoader();
loader.load( '13/13.obj', '13/13.mtl', function ( object ) {
scene.add( object )
}, onProgress, onError );