ARCore:模型显示在脸上 [英] ARCore: Model Showing Above Face
问题描述
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.
我的模型也位于0 x,y和z轴上. 对于代码,我使用的是此示例项目由Google提供:
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:
推荐答案
检查模型的
pivot point
的位置. 3D模型的枢轴必须接近增强面中使用的Googleface mesh
的枢轴.
有两种纠正方法:
- 修复枢轴在3D应用程序(Maya,3dsMax或Blender)中的位置
- 为与增广的Faces API配合使用的几何图形设置
Pose
当您说:我的模型的位置是x:0, y:0, z:0
"时–这表示模型的枢轴点位于x:0, y:0, z:0
,但是整个模型可能与预期位置略有偏移.如果决定将此立方体用作增广面中的增强几何,则将其沿+X
和+Y
轴偏移放置.
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.
希望这会有所帮助.
这篇关于ARCore:模型显示在脸上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!