我想通过代码以编程方式将 .obj
文件转换为 .sfa
和 .sfb
文件。有人可以帮我解决这个问题吗?
请注意:我不需要 Unity3D 或虚幻引擎中的代码。我想要原生 Android (Java) 中的代码。
最佳答案
检查这个link 。目前没有选项可以在运行时将 .obj
转换为 .sfa
和 .sfb
文件。
只有glTF
和glb
可以在运行时加载而无需转换:
来自 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/