Oh dear, I've got severe brain ache today
I've set up a local tour. When the HTML page opens it loads a multires panorama. This is basically a large floor plan with 7 hotspots added. Click on a hotspot and it should load a panorama by replacing the plan. I still need to add a SHOW PLAN button to the small nav bar to get back to the first xml file.
Here's the code below but for some reason when I click on a hotspot it loads a 'random' panorama which is really odd but also I'm unable to move the 360 degree image around. The whole viewer just freezes on that initial view and I honestly can't work out why. I'm guessing it has something to with mixing types of views (Partial multires and full cube 360 X 180.)
Has anyone successfully created a floor plan using this method that will load panoramas?
01.xml (Just the first part)
<krpano version="1.0.8" ispartialpano="true">
<include url="fullscreen.xml"/>
<include url="plugins.xml"/>
<textstyle name="infostyle" origin="center" edge="center" yoffset="-200" textalign="center" background="false" border="false"
fontsize="30" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="5.0" fadetime="1.0"
/>
<textstyle name="buttonstyle" font="Arial" fontsize="12" bold="true" italic="false"
textcolor="16777215" background="false" backgroundcolor="16777215" border="false" bordercolor="0"
alpha="1" blendmode="normal" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);"
origin="cursor" edge="bottom" textalign="none" xoffset="0" yoffset="-3" showtime="0.1" noclip="true"
/>
<plugin url="tourfiles/plugins/jsmouse.swf" keep="true" />
<view hlookat="0" vlookat="0" maxpixelzoom="1.0" />
<display details="22" />
<preview type="CYLINDER" url="tourfiles/guide.tiles/preview.jpg" />
<image type="CYLINDER" hfov="1.00" multires="true" tilesize="854">
<level tiledimagewidth="1500" tiledimageheight="854">
<cylinder url="tourfiles/guide.tiles/l1_%0v_%0h.jpg" />
</level>
</image>
<!-- *************************************************** HOTSPOTS ********************************************************************** -->
<hotspot name="hs0"
keep="false"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
fillcolor ="0xffffff" fillalpha ="0.00" borderwidth ="0.0" bordercolor ="0xffffff" borderalpha ="0.00"
fillcolorhover="0xffffff" fillalphahover="0.00" borderwidthhover="0.0" bordercolorhover="0xffffff" borderalphahover="0.00"
fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
onover=""
onhover="showtext(Room 6,style2)"
onout=""
ondown=""
onup=""
onclick="loadpano(06.xml)"
flying="0"
inverserotation="false"
>
<point ath=" -0.1893" atv=" 0.0020" />
<point ath=" -0.1773" atv=" 0.0307" />
<point ath=" -0.1440" atv=" 0.0187" />
<point ath=" -0.1580" atv=" -0.0093" />
</hotspot>
Alles anzeigen
and here's the code for 06.xml (the spherical panorama that gets loaded)
<krpano version="1.0.8">
<include url="fullscreen.xml"/>
<include url="plugins.xml"/>
<include url="global.xml"/>
<textstyle name="infostyle" origin="center" edge="center" yoffset="-200" textalign="center" background="false" border="false"
fontsize="30" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="5.0" fadetime="1.0"
/>
<textstyle name="buttonstyle" font="Arial" fontsize="12" bold="true" italic="false"
textcolor="16777215" background="false" backgroundcolor="16777215" border="false" bordercolor="0"
alpha="1" blendmode="normal" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);"
origin="cursor" edge="bottom" textalign="none" xoffset="0" yoffset="-3" showtime="0.1" noclip="true"
/>
<plugin url="tourfiles/plugins/jsmouse.swf" keep="true" />
<view hlookat ="1.393283"
vlookat ="22.115865"
camroll ="0.000000"
fov ="70.000000"
fovmin ="25.000000"
fovmax ="70.000000"
maxpixelzoom ="NaN"
limitfov ="true"
fisheye ="0.00"
fisheyefovlink="0.50"
stereographic ="false"
architectural ="0.0"
architecturalonlymiddle="false"
limitview ="auto"
hlookatmin ="NaN"
hlookatmax ="NaN"
vlookatmin ="NaN"
vlookatmax ="NaN"
/>
<image type="CUBE">
<left url="panos/06_l.jpg" />
<front url="panos/06_f.jpg" />
<right url="panos/06_r.jpg" />
<back url="panos/06_b.jpg" />
<up url="panos/06_u.jpg" />
<down url="panos/06_d.jpg" />
</image>
</krpano>
Alles anzeigen
Thanks and i look forward to any advice.
Andrew