Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/101.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios SCN的接缝在哪里?_Ios_Swift_Scenekit - Fatal编程技术网

Ios SCN的接缝在哪里?

Ios SCN的接缝在哪里?,ios,swift,scenekit,Ios,Swift,Scenekit,查看此代码: let sphereGeometry = SCNSphere(radius: 10) sphereGeometry.isGeodesic = falsebetter let sphereMaterial = SCNMaterial() sphereMaterial.diffuse.contents = newImage sphereMaterial.isDoubleSided = true sphereGeometry.materia

查看此代码:

    let sphereGeometry = SCNSphere(radius: 10)
    sphereGeometry.isGeodesic = falsebetter
    let sphereMaterial = SCNMaterial()
    sphereMaterial.diffuse.contents = newImage
    sphereMaterial.isDoubleSided = true
    sphereGeometry.materials = [sphereMaterial]
    sphere = SCNNode(geometry: sphereGeometry)
    sphere.position = SCNVector3(x: 0, y: 0, z: 0)
newImage
是1440x720(我从帽子里挑出来的数字)


好的,
newImage
的左右边缘在球体上出现在哪里?我本以为是“北方”,但事实似乎并非如此。我的图像似乎以东方为中心,这意味着接缝在西方。我似乎找不到任何关于这一点的讨论。

最简单的思考方式是,如果你的图像是一张以0º经度为中心的地球平面/等矩形地图,那么接缝就是日期线

那么这个

从(0,0,+ve)的角度来看是这样的


接缝将是日期线。。。好吧,这正是我所期望的。我猜我的图像加载不正确,或者球体旋转不正确。我看到的是图像的中心-0长,向东。为了完整起见-所示图像的半径为1的地球节点位于,没有旋转,相机位于,灯光位于