ARCore – Object does not show in correct depth in Face Augmentation

ぐ巨炮叔叔 提交于 2020-01-15 06:27:26

问题


I tried to place an object on face. But does not understand how to set depth in object.

Like when I add 3d object like spects frames on face.

It does not show in correct depth.


回答1:


When you use Augmented Faces feature, it's worth to note that if any face is detected, ARCore at first puts a Face Anchor (which must be located behind a nose or, more precise to say, inside a skull), and secondly ARCore puts a canonical mask – its pivot point resides on the same place as anchor does.

Hence, if you wanna place your glasses at the appropriate depth – set a pivot point of your 3D object the same way it was set on a canonical mask. In other words – marry these pivot points.



来源:https://stackoverflow.com/questions/59640401/arcore-object-does-not-show-in-correct-depth-in-face-augmentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!