Distorterd SCNMorpher权重从Blender导入的动画

时间:2017-11-14 11:51:08

标签: ios scenekit blender collada

我正在尝试使用场景工具包和使用SCNMorpher / Key Shapes从Blender导出的资源设置面部变形动画。

在导入的DAE文件中,我修复了2个带有ColladaMorphAdjuster的密钥形状,我可以在

处遍历它们
 node?.morpher?.targets

记录为

Optional([<SCNGeometry: 0x1c4137ca0>, <SCNGeometry: 0x1c4137d40>])

但是,当像SCNMorpher docs网站上的动画一样,网格会变形:

let animation = CABasicAnimation(keyPath: "morpher.weights[0]")
animation.fromValue = 0.0;
animation.toValue = 1.0;
animation.autoreverses = true;
animation.repeatCount = HUGE;
animation.duration = 5;
node?.addAnimation(animation, forKey: nil)

Distortion

我尝试过设置unifyNormals但没有结果。

我无法找到这些关键形状在Scene Kit视图中产生错误输出的原因。

1 个答案:

答案 0 :(得分:1)

在Blender(Apply Modifiers)的导出中应用修饰符会导致失真 - 在我的情况下是suburf。