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

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

问题描述

我有一个关于要在AR App(带有场景形式)中使用的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.

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

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