Sie sind nicht angemeldet.

1

Sonntag, 17. Januar 2010, 22:26

Problems loading panoramas from hotspots on multires flat image.

Oh dear, I've got severe brain ache today *sad*

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)

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


and here's the code for 06.xml (the spherical panorama that gets loaded)

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


Thanks and i look forward to any advice.

Andrew

2

Montag, 18. Januar 2010, 00:27

Made some progress. *smile*

The panoramas load when clicking on the hotspots but there is no movement if the mouse cursor is placed in the center of the viewer. I found out by accident that there is motion if the cursor is used on the very edges (up to 1/2 inch going inwards).

You must admit this is pretty weird.

3

Montag, 18. Januar 2010, 04:31

Worked it out. Took me all afternoon though. *wacko* Problems with the following evil little sods on various plugins:

zorder,
capture="true"
onclick="loadpano(01.xml,null,MERGE,BLEND(1));"

Thanks anyway.

Andrew