Dieser Beitrag wurde bereits 8 mal editiert, zuletzt von »Kostya« (15. Februar 2011, 18:09)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
<krpano version="1.0.8" onstart="loadscene(first_pano);">
<!--This "include" inserts xml-code, which defines control buttons, views of mouse cursor, items of contextual menu,etc.-->
<include url="skin/defaultskin.xml"/>
<!--A good style for pop-up texts (see hotspot-onhover-showtext)-->
<textstyle name="infostyle" origin="top" edge="top" yoffset="10" textalign="center" background="false" border="false" fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="1" fadetime="0.3" />
<!--This is first scene in tour with start view settings of pano, url to images of pano and scene hotspots -->
<scene name="first_pano">
<!--Settings of the start view of the pano and zoom limitations-->
<view hlookat="0" vlookat="0" fov="100" fovmin="10.0" fovmax="120.0" limitfov="true" fovtype="HFOV" />
<!--Preview, which is showing while pano is loading-->
<preview url="first_pano.tiles/preview.jpg" />
<!--Pano type and tiles-->
<image type="CUBE" multires="true" tilesize="796" progressive="false">
<level tiledimagewidth="1592" tiledimageheight="1592">
<left url="first_pano.tiles/l2_l_%0v_%0h.jpg" />
<front url="first_pano.tiles/l2_f_%0v_%0h.jpg" />
<right url="first_pano.tiles/l2_r_%0v_%0h.jpg" />
<back url="first_pano.tiles/l2_b_%0v_%0h.jpg" />
<up url="first_pano.tiles/l2_u_%0v_%0h.jpg" />
<down url="first_pano.tiles/l2_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="796" tiledimageheight="796">
<left url="first_pano.tiles/l1_l_%0v_%0h.jpg" />
<front url="first_pano.tiles/l1_f_%0v_%0h.jpg" />
<right url="first_pano.tiles/l1_r_%0v_%0h.jpg" />
<back url="first_pano.tiles/l1_b_%0v_%0h.jpg" />
<up url="first_pano.tiles/l1_u_%0v_%0h.jpg" />
<down url="first_pano.tiles/l1_d_%0v_%0h.jpg" />
</level>
</image>
<!--Simple hotspot, which loads another pano by clicking on it-->
<hotspot name="hs1"
keep="false"
visible="true"
enabled="true" handcursor="true"
capture="false" children="true"
zorder="2"
url="hotspots/simple.png"
ath="0" atv="0"
scale="1"
onhover="showtext([b][i]Go to the second scene[/i][/b], infostyle);"
onclick="loadscene(second_pano);lookat(0, 0, 100);">
</hotspot>
</scene>
<!--This is second scene in tour with start view settings of pano, url to images of pano and scene hotspots -->
<scene name="second_pano">
<!--Settings of the start view of the pano and zoom limitations-->
<view hlookat="0" vlookat="0" fov="100" fovmin="10.0" fovmax="120.0" limitfov="true" fovtype="HFOV" />
<!--Preview, which is showing while pano is loading-->
<preview url="second_pano.tiles/preview.jpg" />
<!--Pano type and tiles-->
<image type="CUBE" multires="true" tilesize="796" progressive="false">
<level tiledimagewidth="1592" tiledimageheight="1592">
<left url="second_pano.tiles/l2_l_%0v_%0h.jpg" />
<front url="second_pano.tiles/l2_f_%0v_%0h.jpg" />
<right url="second_pano.tiles/l2_r_%0v_%0h.jpg" />
<back url="second_pano.tiles/l2_b_%0v_%0h.jpg" />
<up url="second_pano.tiles/l2_u_%0v_%0h.jpg" />
<down url="second_pano.tiles/l2_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="796" tiledimageheight="796">
<left url="second_pano.tiles/l1_l_%0v_%0h.jpg" />
<front url="second_pano.tiles/l1_f_%0v_%0h.jpg" />
<right url="second_pano.tiles/l1_r_%0v_%0h.jpg" />
<back url="second_pano.tiles/l1_b_%0v_%0h.jpg" />
<up url="second_pano.tiles/l1_u_%0v_%0h.jpg" />
<down url="second_pano.tiles/l1_d_%0v_%0h.jpg" />
</level>
</image>
<!--Simple hotspot, which loads another pano by clicking on it-->
<hotspot name="hs2"
keep="false"
visible="true"
enabled="true" handcursor="true"
capture="false" children="true"
zorder="2"
url="hotspots/simple.png"
ath="0" atv="0"
scale="1"
onhover="showtext([b][i]Go to the first scene[/i][/b], infostyle);"
onclick="loadscene(first_pano);lookat(0, 0, 100);">
</hotspot>
</scene>
</krpano>
|