«

Krpano制作补天补地logo

emer 发布于 2017-10-10 15:02   3695 次阅读     


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


<krpano>

    <!-- 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>

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');"
             />