Krpano制作补天补地logo
Others 2017-10-10 07:02:40 2017-10-10 07:02:40 3715 次浏览复制下面代码保存到skin里面为nadir-logo.xml
<krpano>2.将logo放到根目录<!-- startup viewing direction and angle --> <view hlookat="0" vlookat="55" fov="110" /> <!-- pano image --> <preview url="preview.jpg" /> <!-- nadir logo (a distorted hotspot) --> <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');" /> <!-- onviewchange event - update logo rotation on pano rotation --> <events name="nadirlogo" keep="true" onviewchange="copy(hotspot[nadirlogo].rotate, view.hlookat);" />
</krpano>
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');" />
Links: 38