skybox has 1500x1500 high resolution retina images
SCNScene *scene = [SCNScene scene];
scene.background.contents = @[[UIImage imageNamed:@"left.png"],[UIImage imageNamed:@"left.png"],[UIImage imageNamed:@"top.png"],[UIImage imageNamed:@"botom.png"],[UIImage imageNamed:@"back.png"],[UIImage imageNamed:@"front.png"]];
and the camera is configured as:
_cameraNode = [SCNNode node];
_cameraNode.camera = [SCNCamera camera];
_cameraNode.position = SCNVector3Make(0, 0, 10000);
_cameraNode.camera.xFov = 55;
_cameraNode.camera.zFar = 2100000;
_cameraNode.camera.aperture = 1/50;
I move the camera by z value 100 increments. When the camera reaches about 252,000, the skybox starts to flicker, as if it was zooming in and out. the problem gets worse if the camera moves further until the scene turns black (black - SCNView background color). How to avoid such flickering and camera features in a very bis-scene? What am I doing wrong?
source
share