gpt4 book ai didi

ios - 做变形动画时如何软化

转载 作者:行者123 更新时间:2023-11-29 13:56:37 24 4
gpt4 key购买 nike

当我为模型使用变形动画时,模型会自动变成硬边。我们应该如何避免这种变化?

let animation = CABasicAnimation(keyPath: "morpher.weights[0]")
animation.fromValue = 0.0
animation.toValue = 1.0
animation.autoreverses = true
animation.repeatCount = MAXFLOAT
animation.duration = 0.25
face.addAnimation(animation, forKey: nil)

here is the animation

最佳答案

There could be three potential problems causing your model to show hard edges at animation:

  • 3D 模型(低多边形模型)中的多边形数量不足
  • 源模型和目标模型的多边形数量不同
  • 模特有板面,non-manifold geo , 或非平面

据推测,您可能会同时遇到列出的所有问题,或者只有其中一个。

关于ios - 做变形动画时如何软化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55273454/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com