看看这段代码:
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的左边缘和右边缘出现在球体的什么地方?我本以为会是“北边”,但似乎不是这样。我的图像似乎在东方居中,这意味着接缝在西方。我似乎在the docs中找不到任何关于这方面的讨论。
发布于 2017-01-31 07:02:32
最简单的思考方式是,如果你的图像是一张地球的卡雷/等长方形地图,其中心是0度经度,那么接缝就是日期变更线。
所以这就是

从视点(0,0,+ve)看起来是这样的

https://stackoverflow.com/questions/41943908
复制相似问题