Contents

arkit动画模型规范

arkit动画模型规范

Neutral-静态的pose

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture519a52f414ff89a204d01f3719f869fc.png

一.创建Blendshape 曲线

苹果通过ARKit面部捕捉技术,提供开发者使用iphoneX以上的机器的前置摄像头,实现面部捕捉。blendshape名称是写死的,总共51个blendshape我们需要去实现,不过我们可以实现一些而不是全部。强烈建议的是,命名和功能需要保持一致。所有的值是在0-1之间.

eyeBlinkLeft
eyeLookDownLeft
eyeLookInLeft
eyeLookOutLeft
eyeLookUpLeft
eyeSquintLeft
eyeWideLeft
eyeBlinkRight
eyeLookDownRight
eyeLookInRight
eyeLookOutRight
eyeLookUpRight
eyeSquintRight
eyeWideRight
jawForward
jawRight
jawOpen
mouthClose
mouthFunnel
mouthPucker
mouthLeft
mouthRight
mouthSmileLeft
mouthSmileRight
mouthFrownLeft
mouthFrownRight
mouthDimpleLeft
mouthDimpleRight
mouthStretchLeft
mouthStretchRight
mouthRollLower
mouthRollUpper
mouthShrugLower
mouthShrugUpper
mouthPressLeft
mouthPressRight
mouthLowerDownLeft
mouthLowerDownRight
mouthUpperUpLeft
mouthUpperUpRight
browDownLeft
browDownRight
browInnerUp
browOuterUpLeft
cheekSquintRight
noseSneerLeft
noseSneerRight

eyeBlinkLeft ;eyeLookDownLeft ;eyeLookInLeft

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturef46f68046eb12de27d6e1b5a50547387.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture609bf7cb0d005b3ebed4dae1058463e2.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture36ee0f968a27ab55fdff9c41b2261dbf.png

eyeLookOutLeft eyeLookUpLeft eyeSquintLeft

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture0d22a7ac09d3e0e3891f13ac5b088711.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture5477fa2223878a397e668ce6729847b8.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturebdc34eaf8e4be2f44511962c014f515a.png

eyeWideLeft eyeBlinkRight eyeLookDownRight

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture3bb9c737367e03eda7cda90efa6921e8.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturea532f2b98edc96b49586eb1df232b227.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture537cf9fd85e9664411bc28e6ae0db2bb.png

eyeLookInRight eyeLookOutRight eyeLookUpRight

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/pictureaf033f88cbf6370fbfdace0f2b4cfc2f.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturef4a4fca7b72f05251f52014af32b2a8d.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturea8a6feb84f98b19f57ee005693b45a35.png

eyeSquintRight eyeWideRight jawForward

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture13da709688e315ddb90146943b97e981.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture3fe8dcee9bde4c3be4618d88966afa38.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture420fae2a6959c2e1ba5ac74d2c3d856b.png

jawLeft jawRight jawOpen

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture8c8481c8eba3890ffae5305ff791d9d6.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture34d968c4d39d1b2c3e63eeebcd2fc4a0.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture20399257e752f2ec478f449c7a5fc046.png

mouthClose mouthFunnel mouthPucker

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/pictureb1d25e0cc2ee590f8585c591b03aec53.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture4653d31a8baf358450a40d1dd48a58f2.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturece24ecd262dcddbbe191b64adb008045.png

mouthLeft mouthRight mouthSmileLeft

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture02bb0c04b1ee1414d9395678825c0ef9.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture541fce998b2517a931fcff5b850125b1.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/pictureccbd6a5a234206deb53d9f45e967d7be.png

mouthSmileRight mouthFrownLeft mouthFrownRight

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/pictureb7e123259f7b9c357662cf8171ac00b2.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture7d17bb207ff544edff053689c4c4f7be.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture0c7ec3125748a6846e16de44e62c21f3.png

mouthDimpleLeft mouthDimpleRight mouthStretchLeft

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/pictureab32f323770598fe569271b023634e56.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturebd5b125c61d87a9b89c650de595e5dd1.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture53878a353de35afe0775304a998fa828.png

mouthStretchRight mouthRollLower mouthRollUpper

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture274952f0ffe335ab42b55de9848916cb.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture274952f0ffe335ab42b55de9848916cb.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturef175047eb67ad8fae2094233dc65e152.png

mouthShrugLower mouthShrugUpper mouthPressLeft

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture80ac775c46af6356310750ac47441513.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture25d5b3962028035a996da078e068f784.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture9bacf20d941ea49384e2b36789693cc5.png

mouthPressRight mouthLowerDownLeft mouthLowerDownRight

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture2cdfde3002792ae42a30a07aee8d1863.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture18b38d97d603604c76d044f66e91d5ea.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturef24434e709011929d0f2ae40d10904ac.png

mouthUpperUpLeft mouthUpperUpRight browDownLeft

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/pictureb5676af9d805e10fce7deb4f1e3287d3.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture30e356a5a323aea069ff2a8d5c372ab9.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture445107a7e48b7a086dea237671a528ca.png

browDownRight browInnerUp browOuterUpLeft

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture685d6f5ce48c3dc3dd6b4cb5d7eb5eee.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picturecf23019bc10de3c35a19195f68f2efa2.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture685d6f5ce48c3dc3dd6b4cb5d7eb5eee.png

browOuterUpRight cheekPuff cheekSquintLeft

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture874ba58f68b22387f7f201aaad6269d8.png

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture51d8f40cfb8c859fba9f17915999e656.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/pictureb63398be51b54fbe9e01d9805efca2e2.png

cheekSquintRight noseSneerLeft noseSneerRight

https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture10aa0ace93a042e3d1d74eaebf4d31ea.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture9116e21ef8892daa28944b04fe59ccd1.png https://papalqiblog.oss-cn-beijing.aliyuncs.com/blog/picture5f1524535835055660dad6589935ba40.png

二.处理头部旋转

通过HeadYaw, HeadPitch, HeadRoll控制,ARKit并没有提供,通过Modify Bone节点应用到joints.

三.创建必要的动画

  1. 第一帧是rest pose,没有任何变化的关键帧

  2. 对于第二帧以后,每一个帧应该是一个不同的关键帧的skeletal pose来完成苹果ARKit列表中的位姿。比如,第2帧是eyeBlinkLeft,第3帧是eyeLookDownLeft.

  3. 不必创建所有的,只需要创建需要joints驱动的。比如jawOpen通过关节旋转实现。不过,也有一个blend shape可以驱动面部来得到更自然的外观。

  4. 可以参考KiteBoyHead_JoinsAnim.

四.使用Joints纠正Blend Shapes

大多数角色并不仅仅通过blendshapes驱动.通常,会有一些面部骨骼来帮助控制面部部分的移动。尽管LiveLink实现能够驱动blend shapes,但是也可以在Pose Asset的帮助下驱动面部joints.

在使用ARKit驱动面部动画时,骨骼设置并不是必须的。这里主要是说明如果已经有了joints或者你知道如何使用骨骼动画。

在某一些情况下,比如使用joints驱动一个面部,你会发现你可能还需要一个blend shape来同时触发为了使运动看起来更加合理。此时的Blend shapes常常被称为 corrective blend shapes.修正Blend shapes.

比如,角色的jaw通过joint关节旋转打开时,可以使用一个corrective blend shape来改善。关节旋转与corrective blend shapes,要一直一起运作,二者不能单独使用。

五.More Corrective Blend Shapes

在Face AR的蓝图中,在动画蓝图的一个section中仅仅添加了corrective blend shapes.这主要是特殊的correctives,比如眼睛看向对角方向,比如都在左下角。这些位姿是使用传统的blend shapes处理的,因为ARKit并没有进行提供。