如何在 Xcode 上将 3D 对象 (.obj) 导入 ARKit
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49717060/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to import 3D object (.obj) to ARKit on Xcode
提问by loveCat
I'm a beginner iOS developer.
我是一名初学者 iOS 开发人员。
I'm trying to import and show the 3D object (https://poly.google.com/view/1zS7ucaAd4J) on Xcode by using ARKit.
我正在尝试使用 ARKit 在 Xcode 上导入和显示 3D 对象 ( https://poly.google.com/view/1zS7ucaAd4J)。
Although I converted the 3D object from .obj to .scn, the texture of the 3D object is crashed.
虽然我将3D对象从.obj转换为.scn,但3D对象的纹理崩溃了。
I'd appreciate it if you would point out my wrong setting.
如果您能指出我的错误设置,我将不胜感激。
回答by M Reza Farahani
How did you convert your object to .scn file? I Use Blenderapplication to convert .objfiles to .daewhich can be directly imported to the ARKit project and it works pretty good. You can also convert the .daefile to .scnvery simply by xcode.
您是如何将对象转换为 .scn 文件的?我使用Blender应用程序将.obj文件转换为.dae,它可以直接导入到 ARKit 项目中,效果很好。您还可以通过 xcode 非常简单地将.dae文件转换为.scn。