3D模型

AR-ARKit-如何在iOS中使用网络下载.dae 3D模型文

2019-03-20  本文已影响0人  AZander

AR-ARKit-如何在iOS中使用网络下载.dae 3D模型文件并使用

.dae文件的处理

模型加载

iOS是使用SCNScene类来加载和管理3D模型的,模型加载实际上就是SCNScene的初始化,有以下两种方式,详细见[SCNScene API](https://developer.apple.com/documentation/scenekit/scnscene)

guard let myScene = SCNScene(named: "MyScene") 
    else { fatalError("Unable to load scene file.") }
scnView.scene = myScene // Your app's SCNView

convenience init(url: URL, options: [SCNSceneSource.LoadingOption : Any]? = nil) throws
上一篇 下一篇

猜你喜欢

热点阅读