[我想在Android Studio中使用Sceneform创建一个AR应用程序,该应用程序在用户的面部上显示不同的眼镜。我的问题是如何创建这些模型?此外,模型在面部上的定位如何工作?
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构建人脸跟踪应用程序的所有要素方面做得很好。