java - 如何以编程方式创建 .sfa snd .sfb 文件

标签 java android android-studio arcore

我想通过代码以编程方式将 .obj 文件转换为 .sfa.sfb 文件。有人可以帮我解决这个问题吗?

请注意:我不需要 Unity3D 或虚幻引擎中的代码。我想要原生 Android (Java) 中的代码。

最佳答案

检查这个link 。目前没有选项可以在运行时将 .obj 转换为 .sfa.sfb 文件。

只有glTFglb可以在运行时加载而无需转换: 来自 arcore documentation :

3D models stored as glTF or glb files can be loaded at runtime without conversion. This greatly improves the flexibility of the models rendered in your application, but the trade-off is the model is read at runtime and does not benefit from the optimization that is done during build time conversion to sfb.

关于java - 如何以编程方式创建 .sfa snd .sfb 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58299191/

相关文章:

android - android studio 中缺少 api 级别 15 图像

java - 在 Java 中加载 StanfordOpenNLP 模型的巨大开销?

java - 在 FreeBSD 共享服务器上安装 GlassFish

java - Android 在 Activity 之间切换

java - 你如何从android中的照片中提取地理位置信息?

bash - 如何在不打开 shell 的情况下运行 studio.sh(使用 Ubuntu)

android - 检查哪个类正在使用 Android 库的 API

java - 如何在不删除分割字符的情况下分割字符串

java - IntelliJ理念14 : How do I import all existing idea modules in a folder tree into a project

java - 在 onDrag 函数中保存坐标时出现问题