我正在研究360图像查看器,我使用SCNSphere . 问题是我创建球体时应该使用的半径是多少?

到目前为止,我注意到将半径设置在10到100之间的任何位置都可以正常工作 . 但是,假设图像是缠绕球体,半径不应该是2 * Pi / image.width(其中C = 2 * Pi * R)??不知何故,这对我正在使用的尺寸为1600 x 800的图像完全不起作用 .

这是我的代码:

let material = SCNMaterial()
material.diffuse.contents = image360
let sphere = SCNSphere(radius: 10)
sphere.segmentCount = 300
sphere.firstMaterial = material
let node = SCNNode()
node.geometry = sphere

澄清问题:如何为图像(例如尺寸1600x800)选择SCNSphere的适当半径作为材料?

谢谢!