Displaying USD File in SwiftUI

I am generating a USD file with RealityKit and ARKit. I want to, within the same app, open the USD file and display it as if it was a USDZ file. For the user to see, without having to send it to another device.

Is this possible?

Thanks

Replies

Cole from Scandy wrote a nice blog article about this a number of years ago. I don't think his mesh was textured though, so the method described may not yield the results you're looking for.

https://www.scandy.co/blog/how-to-export-simple-3d-objects-as-usdz-on-ios

Hello @DavidPaulK,

If you've generated a USD file, you can write it to disk, and then load the file as an Entity and display it with RealityKit.