ARCore: Model Showing Above Face

旧时模样 提交于 2019-12-12 09:55:34

问题


I am trying to follow the following guide as to how to create a custom 3D model for Augmented Faces but for some reason my model is going above my head, literally.

My model is on the 0 x, y, and z axis as well. For code I'm using this example project provided by from Google:


回答1:


Check where's a position of a pivot point of your model. 3D model's pivot must be near a pivot of Google's face mesh used in Augmented Faces.

There's two ways to correct it:

  • Fix pivot's position in 3D application (Maya, 3dsMax or Blender)
  • Setup a Pose for geometry you use with Augmented Faces API

When you say: "My model's position is x:0, y:0, z:0" – it means a pivot point of your model locates at x:0, y:0, z:0, but the whole model might be slightly offset from an expected position. If you decide to use this cube as augmented geometry in Augmented Faces, it'll be placed with an offset along +X and +Y axis.

Hope this helps.



来源:https://stackoverflow.com/questions/55975867/arcore-model-showing-above-face

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