我正在尝试使用three.js在Web浏览器中加载fbx文件。
我的加载程序代码是:
const objs = [];
const loader = new THREE.FBXLoader();
loader.load('/models/fbx/Handgun.fbx', model => {
// model is a THREE.Group (THREE.Object3D)
const mixer = new THREE.AnimationMixer(model);
// animations is a list of THREE.AnimationClip
mixer.clipAction(model.animations[0]).play();
scene.add(model);
objs.push({model, mixer});
});
代码抛出常量错误:
未捕获的TypeError:无法读取未定义的属性'extractUrlBase' 在FBXLoader.load(FBXLoader.js:43)上