krpano 用hotspot當全景圖片,hotspot可以用png透明圖片,全景圖想要透明的解決方案

1、先定義一個共同的樣式

<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設置都不一樣

    <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

儘量複製我寫的這個代碼測試

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章