Pivot point
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.
In AR each situation is special, so set model' pivot position depending on your needs. Here is an example on how to position a table's pivot for meeting an anchor. Even though this example is about ARKit, it makes your issue clearer, doesn't it?