I am having trouble understanding how geometry from .dae
files should be loaded into an iOS SceneKit scene graph.
I know that you can load .dae
I had a similar problem where I had one .dae file and I wanted to load multiple nodes from that file into a node. This worked for me:
var node = SCNNode()
let scene = SCNScene(named: "helloScene.dae")
var nodeArray = scene.rootNode.childNodes
for childNode in nodeArray {
node.addChildNode(childNode as SCNNode)
}
First, I set a node that will hold it all together so it looks like it does in the original file. Next we import the .dae file we want and copy all the nodes inside of it. Lastly, for each node in the array I added it to the node.