You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried a good few different combinations but once I'm on ARSCNView I can't seem to add any child nodes. Even If I don't use terrainNode.convertPosition and just try to add a child to the root node, nothing shows.
The child is being added as if I check the count of arView?.scene.rootNode.childNodes it is increasing every time I add a child node but visually I see nothing.
I am adding them like this with a button once everything loaded:
let node = SCNNode(geometry: SCNSphere(radius: 100.0))
node.geometry?.firstMaterial?.diffuse.contents = .red
let position = positionForLocation(CLLocationValue)
node.position = convertPosition(position, to: self.terrainNode)
terrainNode.addChildNode(firstNode)
Or you can simply use my PR to do it easily (#24) by using terrainNode.projectedSphere method.
I have tried a good few different combinations but once I'm on ARSCNView I can't seem to add any child nodes. Even If I don't use terrainNode.convertPosition and just try to add a child to the root node, nothing shows.
The child is being added as if I check the count of arView?.scene.rootNode.childNodes it is increasing every time I add a child node but visually I see nothing.
I am adding them like this with a button once everything loaded:
`
let endSphere = SCNNode(geometry: SCNSphere(radius: 100.0))
endSphere.geometry?.firstMaterial?.diffuse.contents = UIColor.red
endSphere.position = (arView?.scene.rootNode.position)!
The text was updated successfully, but these errors were encountered: