krpano的snow插件,也就是雨雪插件,能讓全景中“從天而降”漂亮的雪花或者點點細雨,或是任何你自定義的圖像。這種特效讓全景漫遊時的體驗更具真實感。
下載下傳特效檔案解壓到vtour檔案夾中,即是與tour.xml同一級目錄,分别是snow_image檔案夾、snow.xml檔案。
在你的krpano安裝包中viewer\plugins找到snow.swf以及snow.js,将這兩個檔案複制到vtour檔案夾的plugins檔案夾中。
然後在你想要的scene裡的onstart中添加onstart=”snowballs();”即選擇了雪球特效。
然後在該scene裡面寫上
<include url=”snow.xml” />
如下面代碼所示:
<scene name="scene_achilleion-hof-unten" title="Achilleion - Garden" onstart="snowballs();" thumburl="panos/achilleion-hof-unten.tiles/thumb.jpg" lat="39.563340" lng="19.904324" heading="0.0">
<view hlookat="-1" vlookat="11" fovtype="MFOV" fov="120" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/achilleion-hof-unten.tiles/preview.jpg" />
<image><cube url="panos/achilleion-hof-unten.tiles/mobile_%s.jpg" />
</image>
<include url="snow.xml" />
</scene>
可選的樣式
雪 – onstart=”defaultsnow();”
雪球 – onstart=”snowballs();”
雪花 – onstart=”snowflakes();”
銀色星星 – onstart=”silverstars();”
金色星星 – onstart=”goldenstars();”
心形 – onstart=”hearts();”
笑臉 – onstart=”smileys();”
錢 – onstart=”money();”
雨 – onstart=”rain();”
大雨 – onstart=”heavyrain();”
雨雪特效檔案snow.xml及snowimage檔案夾下載下傳
百度網盤 https://pan.baidu.com/s/1-Km5G6P6WgsQO3pEZYkXmA
密碼:b7no