I want to place an obj-3D-Model with ARKit and SceneKit.
That's the model I'm using: https://free3d.com/3d-model/chest-50529.html
I'm using the following code:
private func createChestFromScene(_ position: SCNVector3) -> SCNNode? {
guard let url = Bundle.main.url(forResource: "art.scnassets/Models/chest", withExtension: "obj") else {
NSLog("Could not find door scene")
return nil
}
guard let node = SCNReferenceNode(url: url) else { return nil }
node.load()
// Position scene
node.position = position
return node
}
However, I get the following error: OBJ file has no faces
.
Why? - Thanks.