繁体   English   中英

iOS PanoramaGL Hotspot无法正确显示

[英]iOS PanoramaGL Hotspot not showing correctly

我正在使用PanoramaGL在汽车内显示360度图片,并且需要添加一些热点。

我确实喜欢他们的例子:

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º图像工作正常,但热点显示如下图所示的扭曲。 应该是一个绿色圆圈。

在此处输入图片说明

我没有OpenGL方面的专业知识,所以我对正在发生的事情以及如何修复它有些迷茫。

任何想法或任何其他有效的图书馆?

我放弃尝试使用此库。 相反,我在网络视图中使用Pannellum 效果很好。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM