SCNSphere 的接缝在哪里?
Where is the seam on a SCNSphere?
查看此代码:
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
的左右边缘出现在球体的哪个位置?我本来以为会是"north",但好像不是这样。我的图像似乎以东为中心,这意味着接缝在西边。我似乎无法在 the docs.
中找到对此的任何讨论
最简单的理解方式是,如果您的图片是一张中心为 0º 经度的地球正方形/等距柱状地图,那么接缝就是日期变更线。
所以这个
从 (0,0, +ve)
的角度来看会是这样
查看此代码:
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
的左右边缘出现在球体的哪个位置?我本来以为会是"north",但好像不是这样。我的图像似乎以东为中心,这意味着接缝在西边。我似乎无法在 the docs.
最简单的理解方式是,如果您的图片是一张中心为 0º 经度的地球正方形/等距柱状地图,那么接缝就是日期变更线。
所以这个