我是靠谱客的博主 任性小松鼠,这篇文章主要介绍krpano 用hotspot当全景图片,hotspot可以用png透明图片,全景图想要透明的解决方案,现在分享给大家,希望可以做个参考。

1、先定义一个共同的样式

复制代码
1
2
<style name="cubeface" keep="true" visible="true" enabled="false" handcursor="true" distorted="true" rx="0.0" ry="0" rz="0.0" zorder="" width="1000" height="1000" capture="true" scale="1.0" />

2、每张图片(上下左右前后)的ath,atv设置都不一样

复制代码
1
2
3
4
5
6
7
8
<hotspot name="pano1_f" style="cubeface" url="f.png" ath="0" atv="0" /> <hotspot name="pano1_l" style="cubeface" url="l.png" ath="-90" atv="0" /> <hotspot name="pano1_r" style="cubeface" url="r.png" ath="+90" atv="0" /> <hotspot name="pano1_u" style="cubeface" url="u.png" ath="0" atv="-90" /> <hotspot name="pano1_d" style="cubeface" url="d.png" ath="0" atv="+90" /> <hotspot name="pano1_b" style="cubeface" url="b.png" ath="+180" atv="0" />

如果6张图没有拼接好,看一下公共样式width和height是不是写的1000

尽量复制我写的这个代码测试

最后

以上就是任性小松鼠最近收集整理的关于krpano 用hotspot当全景图片,hotspot可以用png透明图片,全景图想要透明的解决方案的全部内容,更多相关krpano内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(52)

评论列表共有 0 条评论

立即
投稿
返回
顶部