问题
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'sface 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