如何创建用于场景格式的3d模型?

问题描述 投票:0回答:1

[我想在Android Studio中使用Sceneform创建一个AR应用程序,该应用程序在用户的面部上显示不同的眼镜。我的问题是如何创建这些模型?此外,模型在面部上的定位如何工作?

android-studio 3d augmented-reality arcore sceneform
1个回答
0
投票
根据文档

Sceneform支持以下格式的3D资源:* OBJ * glTF(不支持动画)* FBX,带有或不带有动画。 -https://developers.google.com/ar/develop/java/sceneform/import-assets

为了进行面部跟踪,您需要配置ARCore会话以检测/跟踪面部

override fun getSessionConfiguration(session: Session): Config { val config = Config(session) config.augmentedFaceMode = Config.AugmentedFaceMode.MESH3D return config }

有关详细信息,您可以从Captech上查看本教程:https://captechconsulting.com/blogs/getting-started-with-augmented-faces-with-arcore

[[注:我不隶属于Captech,IMO在解释使用ARCore构建人脸跟踪应用程序的所有要素方面做得很好。

© www.soinside.com 2019 - 2024. All rights reserved.