如何在SCNShere几何上为SCNMaterial使用Web墨卡托投影地图? [英] How do I use a web mercator projection map for SCNMaterial on an SCNShere geometry?

查看:124
本文介绍了如何在SCNShere几何上为SCNMaterial使用Web墨卡托投影地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个简单的Globe视图.以前我们使用的是WhirlyGlobe,但选择使用SceneKit代替.一切工作都很好,我们对此感到满意,除了我们在Whirly Globe中使用了地图拼贴,而在SceneKit中却无法使用(据我所知).我们想在SCNSphere几何体上使用该贴图(平铺,分割或作为一个文件).

I have a simple globe view in my app. Previously we were using WhirlyGlobe, but have opted to use SceneKit instead. Everything works great and we are happy with it EXCEPT we used map tiles in Whirly Globe and the do not work (as far as I can tell) in SceneKit. We want to use that map (tiled, split or as one file) on an SCNSphere geometry.

我复制了Apple在其文档中使用的卫星地图,它看起来不错,但不是我们需要的地图.我们的地图位于网络/球体墨卡托投影中,在我的球体上的SceneKit中看起来很糟糕.

I copied the satellite map that Apple uses in their documentation and it looks right, but is not the map we need. Our map is in web/sphere mercator projection and it looks bad in SceneKit on my sphere.

我不**不知道苹果使用的2x1投影叫什么,所以只是信息可能足以让我找到解决方案.

I do not* know what the 2x1 projection Apple is using is called, so JUST that information might be enough for me to find the solution.

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆