我正在尝试在ThreeJS中加载一个FBX模型。如果我加载模型,它只从底部显示,而不是从顶部显示。似乎只有一方被渲染。
有人想办法解决这个问题吗?
我的负荷功能:
_LoadAnimatedModel() {
const loader = new FBXLoader();
loader.setPath('./resources/models/');
loader.load('track.fbx', (fbx) => {
fbx.scale.setScalar(0.1);
fbx.traverse(c => {
c.castShadow = true;
});
const anim = new FBXLoader();
anim.setPath('./resources/models/');
anim.load('track.fbx', (anim) => {
const m = new THREE.AnimationMixer(fbx);
this._mixers.push(m);
const idle = m.clipAction(anim.animations[0]);
idle.play();
});
this._scene.add(fbx);
});
}同样的问题是,如果我将它加载到https://threejs.org/editor/中
我导出它没有动画,现在它显示在屏幕上。有没有人知道如何正确地从搅拌机导出FBX?
发布于 2022-01-12 11:22:02
对每个有同样问题的人来说。我修正了它,使我的轨道更厚,并检查“应用改良剂”在出口搅拌机。
https://stackoverflow.com/questions/70679312
复制相似问题