ARCore:模型显示在脸上 [英] ARCore: Model Showing Above Face

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

问题描述

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

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模型的枢轴必须接近增强面中使用的Google face 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屋!

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