我的场景在模型加载期间暂时冻结。是否有任何阻止这种情况的选择?
var loader = new THREE.JSONLoader();
loader.load("model.js", function(smooth) {
smooth.mergeVertices();
smooth.computeFaceNormals();
smooth.computeVertexNormals();
var modifier = new THREE.SubdivisionModifier(1);
modifier.modify(smooth);
scene.add(smooth);
var mesh = new THREE.Mesh(smooth, new THREE.MeshPhongMaterial({
color : 0x222222
}));
$('input').change(function() {
if ($("#radio1, #radio2, #radio3, #radio4").is(":checked")) {
scene.add(vierring);
} else if ($("#radio1, #radio2, #radio3, #radio4").is(":not(:checked)")) {
scene.remove(vierring);
}
});
});