ARCore:显示在面部上方的模型 [英] ARCore: Model Showing Above Face

查看:28
本文介绍了ARCore:显示在面部上方的模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循以下指南,了解如何为

当你说:我的模型的位置是 x:0, y:0, z:0"– 这意味着您的模型的枢轴点位于 x:0, y:0, z:0,但整个模型可能会稍微偏离预期位置.如果您决定将此立方体用作增强面中的增强几何体,它将沿 +X+Y 轴以偏移量放置.

在 AR 中,每种情况都是特殊的,因此请根据您的需要设置模型的枢轴位置.这是一个关于如何定位表格的示例与锚会合的枢轴.尽管这个例子是关于 ARKit 的,但它让你的问题更清晰,不是吗?

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:

解决方案

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?

这篇关于ARCore:显示在面部上方的模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆