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
Thanks for your help!
Here is a simple collada2Node class.
//collada2SCNNode
class func collada2SCNNode(filepath:String) -> SCNNode {
var node = SCNNode()
let scene = SCNScene(named: filepath)
var nodeArray = scene!.rootNode.childNodes
for childNode in nodeArray {
node.addChildNode(childNode as SCNNode)
}
return node
}