2017-04-12 126 views
0

我使用PanoramaGL在车内显示360图片,我需要添加一些热点。iOS PanoramaGL热点显示不正确

我做了完全一样的例子:

UIImage *pano = [UIImage imageNamed:@"inside360_2048"]; 
NSObject<PLIPanorama> *panorama = [PLSphericalPanorama panorama]; 
[(PLSphericalPanorama *)panorama setImage:[PLImage imageWithCGImage:pano.CGImage]]; 

UIImage *hs = [UIImage imageNamed:@"dashboard_hotspot"]; 
PLTexture *hotspotTexture = [PLTexture textureWithImage:[PLImage imageWithCGImage:hs.CGImage]]; 
PLHotspot *hotspot = [PLHotspot hotspotWithId:1000 texture:hotspotTexture atv:0.0f ath:0.0f width:0.08f height:0.08f]; 
[panorama addHotspot:hotspot]; 

// Set panorama 
[self.plView setPanorama:panorama]; 

的360度影像作品完美,但热点显示扭曲像下面的图像。它应该是一个绿色的圆圈。

enter image description here

我没有专业知识用OpenGL,所以我有点失去了这是怎么回事,以及如何解决它。

任何想法或任何其他图书馆的工作?

回答

0

我放弃了试图使用这个库。 相反,我在网络视图中使用Pannellum。它很好地工作。