Krpano制作补天补地logo

Others 2017-10-10 07:02:40 2017-10-10 07:02:40 3715 次浏览

复制下面代码保存到skin里面为nadir-logo.xml


<krpano>

&lt;!-- startup viewing direction and angle --&gt;
&lt;view hlookat="0" vlookat="55" fov="110" /&gt;

&lt;!-- pano image --&gt;
&lt;preview url="preview.jpg" /&gt;

&lt;!-- nadir logo (a distorted hotspot) --&gt;
&lt;hotspot name="nadirlogo" keep="true"
         url="logo.png"
         ath="0"
         atv="90"
         distorted="true"
         scale="1.0"
         rotate="0.0"
         onclick="openurl('http://krpano.com');"
         /&gt;

&lt;!-- onviewchange event - update logo rotation on pano rotation --&gt;
&lt;events name="nadirlogo" keep="true" onviewchange="copy(hotspot[nadirlogo].rotate, view.hlookat);" /&gt;

</krpano>

2.将logo放到根目录


3.将scene外添加


<events name="nadirlogo" keep="true" onviewchange="copy(hotspot[nadirlogo].rotate, view.hlookat);" />
<hotspot name="nadirlogo" keep="true"
	         url="logo.png"
	         ath="0"
	         atv="90"
	         distorted="true"
	         scale="1.0"
	         rotate="0.0"
	         onclick="openurl('http://lininn.cn');"
	         />
	         <hotspot name="nadirlogo1" keep="true"
	         url="logo.png"
	         ath="0"
	         atv="-90"
	         distorted="true"
	         scale="1.0"
	         rotate="0.0"
	         onclick="openurl('http://lininn.cn');"
	         />