I have a simple tube node in my scene that isn't displaying properly.
When I rotate it to face the camera, more than half of it is covered by some invisible sheet. When I rotate the tube enough, it gets completely covered by the sheet. Here is a screenshot showing my problem:
As you can see, the red tube is covered on its top-end. If I were to rotate it far enough, it would disappear.
There is nothing complex in my code, it's all very simple. In fact, here is is:
// Create tube geometry. let tubeGeometry = SCNTube(innerRadius: 5.0, outerRadius: 6.0, height: 200.0) tubeGeometry.firstMaterial!.diffuse.contents = UIColor.redColor()/*UIImage(named: "GreenTube")*/ // Create tube node. let tube = SCNNode(geometry: tubeGeometry) tube.position = SCNVector3Make(0.0, -11.0, 0.0) tube.rotation = SCNVector4Make(1.0, 0.0, 0.0, Float(M_PI_2)) self.rootNode.addChildNode(tube)