我正在尝试找出 ipad 和 iphone 上场景套件中视野的正确值。的默认值60 degree
对屏幕边缘的球体有不良影响。球体变成椭圆形。值34 degree
会导致天空盒像素化。iPad 和 iPhone 的正确值是多少?
_cameraNode = [SCNNode node];
_cameraNode.position = SCNVector3Make(0, 0, 500);
[scene.rootNode addChildNode:_cameraNode];
_cameraNode.camera = [SCNCamera camera];
_cameraNode.camera.automaticallyAdjustsZRange = YES;
#if TARGET_OS_IPHONE
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
_cameraNode.camera.yFov = 55;
} else #endif {
_cameraNode.camera.xFov = 34;
}
scnView.pointOfView = _cameraNode;