Unity3D 动画 关键帧 FrameRate

There isn't really a framerate as such for character animations. Two consecutive keyframes are separated by a certain amount of time, and you can interpolate the key values at any point between the keyframes. Modelling apps often use the concept of a frame, but it's really just a convenient measure of time.


动画实际上没有游戏中帧率的概念,有的只有关键帧的概念。制作动画时有个sample rate,表示将一秒钟分为多少帧。假如sample rate为10,表示将一秒钟分为10帧(一帧为0.1秒)。假如我们在第二帧(动画开始为第0帧)添加key,使position.x为6,第十帧上添加key,使position.x为8,那么就表示,当动画开始播放后2*0.1=0.2秒时,一定会使position.x为6,当动画播放10*0.1=1秒时,一定会使position.x为8.至于0~2帧,2~10帧之间的每一时刻,position.x为多少,只要按照动画曲线进行插值即可。实际的值为多少,可能并不确定。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值