如何准备嵌入 AR 应用的 3D 模型 [英] How to prepare a 3D model to embed in an AR App

查看:33
本文介绍了如何准备嵌入 AR 应用的 3D 模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于我想在 AR 应用程序中使用的 3D 模型(带场景形式),我有一个新手问题.模型本身是 .fbx 格式,我有 5 个纹理或贴图(作为 .jpg 文件)用于不透明度、金属、粗糙度、基色和法线.导入 .fbx 模型有效,但我不知道如何为其分配纹理.根据文档(https://developers.google.com/ar/develop/java/sceneform/custom-material),我需要一个 .mat 文件.这就是我的问题,如何创建一个.手动或自动.从哪儿开始?关于该主题的任何想法/方向/良好的阅读都是有帮助的.提前谢谢你!

I have a newbie-questions regarding a 3D model I want to use in an AR App (with sceneform). The model itself is in .fbx format and I have 5 textures or maps (as .jpg files) for opacity, metal, roughness, base color and normal. Importing the .fbx model works, but I have no idea how to assign the textures to it. According to the documentation (https://developers.google.com/ar/develop/java/sceneform/custom-material), I need a .mat file. And that's my problem, how to create one. Manually or automatically. Where to start? Any idea/direction/good reading on the topic is helpful. Thank you in advance!

推荐答案

使用 sceneform 插件或使用 .gltf 扩展名将模型转换为 .sfb.在转换后的模型或带有 .gltf 扩展名的模型上,您可以务实地在模型上添加纹理,以下链接中有一个示例项目可以执行此操作

Convert model to .sfb using sceneform plugin or using .gltf extension. On converted model or on model with .gltf extension, you can add texture on model pragmatically, there is a sample project for doing this on the following link

https://medium.com/temy/dynamic-textures-in-sceneform-98d7a2d35406

我用java实现了这个.我希望这对你有帮助.

i implemented this in java. i hope this help you.

这篇关于如何准备嵌入 AR 应用的 3D 模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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