title: Scnview nodes appear semi transparent
body: <p>3D Perspective should block shelves etc correctly</p>
  
  <p>Sample Image of the ScnView:</p>
  
  <p><a href="https://i.stack.imgur.com/9acqM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9acqM.jpg" alt="sample ScnView"></a></p>
  
  <p>Very Simple. Added Scnview. Added Scnnodes ( shapes and lights )</p>
  
  <p>Using standard Omni type light. </p>
  
  <p>Why are the objects in front not blocking the objects behind ?</p>
  
  <p>Here's the CODE:</p>
  
  <pre><code>[self.studioView addSubview:showTimeView];
  
  showTimeView.frame = CGRectMake(self.paperView.frame.origin.x,
                                  self.paperView.frame.origin.y,
                                  self.paperView.frame.size.width,
                                  self.paperView.frame.size.height);
  
  SCNView *sceneView = (SCNView *)showTimeView;
  sceneView.backgroundColor = [UIColor whiteColor];  
  
  sceneView.scene = [SCNScene scene];
  SCNNode *root = sceneView.scene.rootNode;
  sceneView.allowsCameraControl           = YES;
  sceneView.autoenablesDefaultLighting    = NO;
  
  
  // Add Camera
  SCNNode *cameraNode = [SCNNode node];
  cameraNode.camera = [SCNCamera camera];
  cameraNode.position = SCNVector3Make(0, 0, 100);
  cameraNode.eulerAngles = SCNVector3Make(0, -M_PI/8, 0);
  cameraNode.camera.zNear = 0;
  cameraNode.camera.zFar  = thisModuleDepth;
  cameraNode.camera.xFov  = thisWallWidth;
  cameraNode.camera.yFov  = thisModuleHeight;
  [root addChildNode:cameraNode];
  
  // Add Cabinet Piece
  SCNBox *cubeGeom = [SCNBox boxWithWidth:tW
                                   height:tH
                                   length:tD
                            chamferRadius:0.0];
  SCNNode *cubeNode = [SCNNode nodeWithGeometry:cubeGeom];
  cubeNode.position = SCNVector3Make(tX, tY, tZ);
  
  // Tag Material
  SCNMaterial *material = [SCNMaterial material];
  material.diffuse.contents = [UIImage imageNamed:thisColor];
  [material.diffuse.contents setAccessibilityIdentifier:thisColor] ;
  [material.diffuse.contents setAccessibilityLabel:thisID] ;
  cubeNode.geometry.firstMaterial = material;
  cubeNode.geometry.firstMaterial.locksAmbientWithDiffuse = NO;
  cubeNode.physicsBody = [SCNPhysicsBody staticBody];
  [root addChildNode:cubeNode];
  
  // Add spotlight
  SCNLight *spotLight = [SCNLight light];
  spotLight.type = SCNLightTypeOmni;
  spotLight.color = [UIColor whiteColor];
  SCNNode *spotLightNode = [SCNNode node];
  spotLightNode.light = spotLight;
  spotLightNode.position = SCNVector3Make(thisWallWidth / 2 ,thisModuleHeight, thisModuleDepth *2);
  spotLightNode.light.intensity = 1000;
  [root addChildNode:spotLightNode];
  </code></pre>