Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Using SCNScene's native USDZ writer #2

Open
cpheinrich opened this issue Sep 17, 2020 · 1 comment
Open

Using SCNScene's native USDZ writer #2

cpheinrich opened this issue Sep 17, 2020 · 1 comment

Comments

@cpheinrich
Copy link

In case its useful for anybody else, I wanted to call out that since the 2019 WWDC it's now possible to write USDZ files natively using SceneKit. To convert obj to USDZ you would do

import SceneKit
import ModelIO

let asset = MDLAsset(url: objPath)
let scene = SCNScene(mdlAsset: asset)
scene.write(to: <your-usdz-file-path>, delegate: nil)

This would be the recommended way to do this suggested halfway into this video: https://developer.apple.com/videos/play/wwdc2019/602/

Hope this saves people some time

@cpheinrich
Copy link
Author

Note: I do appreciate this repo though, because this SCNScene export option was only possible since late 2019. It would have been nice of Apple to expose that option earlier

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant