I didn't see any way in RealityFoundation to do this, but you can easily convert it using the ModelIO Framework. At line 89 after the processing is complete. You can add this chunk of code:
print("Processing is complete!")
let objPath = <#Your OBJ Path#>
let modelAsset = MDLAsset(url: URL(fileURLWithPath: outputFilename))
modelAsset.loadTextures()
do {
try modelAsset.export(to:URL(fileURLWithPath: objPath))
print("Exported to OBJ!")
}
catch {
print(error)
}
Topic:
Graphics & Games
SubTopic:
General
Tags: