就像https://threejs.org/examples/?q=morph#webgl_morphtargets_human一样, 但我想实现基于glTF的演示。
我曾尝试使用https://github.com/HowardWolosky/glTF-Sample-Models/tree/morphAnimation/2.0/AnimatedMorphCube和https://github.com/HowardWolosky/glTF-Sample-Models/tree/morphAnimation/2.0/AnimatedMorphSphere等glTF模型,但他们使用动画,我想手动控制变形权重,例如:
mesh.morphTargetInfluences [0] = 0.5;
mesh.morphTargetInfluences [1] = 0;
mesh.morphTargetInfluences [2] = 1;
谢谢
答案 0 :(得分:0)
我自己通过更改gltfloader.js中的代码来解决这个问题。 见https://github.com/mrdoob/three.js/pull/11786#issuecomment-316423788