Sie sind nicht angemeldet.

Run

Anfänger

  • »Run« ist der Autor dieses Themas

Beiträge: 41

Wohnort: maryland. USA

Beruf: Photographer

  • Nachricht senden

1

Sonntag, 17. Oktober 2010, 07:04

"scenes-with-imagemap.html" Example, need help with initial view settings

I am having a really tough time with a scene based tour I am building using the example code from "scenes-with-imagemap.html". I have 11 panoramas/scenes and want each one to have its own startup values. I included them where I thought they went but they have no effect on the scene when it loads at all. Actually I cant find a way to change any of the view settings for an individual scene without it being global. The same thing happens when I went back to the provided example, this example code is as follows

Quellcode

1
<view hlookat="-15" vlookat="-10" fov="90" />
and no changes on the view line do anything;

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
<!-- first scene/pano -->
	<scene name="scene1" onstart="action(startscene);">

		<action name="startscene">
			showtext([b][i]scene 1[/i][/b], infostyle);
			action(activatespot,scene1, 40);
		</action>
		
		<plugin name="mapmask" url="pano2_mapmask.png" parent="map" enabled="false" onloaded="updatemask();" />
		
		<view hlookat="-15" vlookat="-10" fov="90" />

		<image type="CUBESTRIP">
			<cubestrip url="pano1.jpg" />
		</image>

		<!-- place here scene local elements like plugins,hotspots, ... -->

		<hotspot name="spot2" url="spot2.png" ath="-42" atv="-12" scale="0.6" zoom="true"
		         alpha="0.3"
		         onover="tween(alpha,1);tween(scale,1);"
		         onout="tween(alpha,0.3);tween(scale,0.6);"
		         onclick="looktohotspot(spot2); loadscene(scene2, null, MERGE, BLEND(1));"
		         />

	</scene>


When I try to change the values set using the

Quellcode

1
<view hlookat="-15" vlookat="-10" fov="90" />
nothing happens, it has no effect at all. I tried doing it in the example as well as in my code and nothing seems to work to change the fov, vlook, hlook, zoom max and zoom min either.

I really need some help here I have been banging my head against this for two days now.

Thank you in advance

Rick

2

Sonntag, 17. Oktober 2010, 15:27

Notice that the top line starts scene 2 by default first. I assume you are making your changes in scene 1 but checking scene 2 by default.

<krpano version="1.0.8" onstart="loadscene(scene2,null,MERGE);" >

Run

Anfänger

  • »Run« ist der Autor dieses Themas

Beiträge: 41

Wohnort: maryland. USA

Beruf: Photographer

  • Nachricht senden

3

Dienstag, 19. Oktober 2010, 18:49

Hi, Thanks for responding.

I actually was making them in sceen one of my own code and copied the example code into that post by mistake. Sorry for that. And my code loads scene 1 first not scene 2:)

Here is my code for my scene one which I should have posted before:


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
	<!-- first scene/pano -->
	<scene name="scene1" onstart="action(startscene);)">

		<action name="startscene">
			<!--showtext([b][i]Scene 1[/i][/b], infostyle);-->
			action(activatespot,scene1, 40);
		</action>
		
		
		<!--<plugin name="mapmask" url="pano2_mapmask.png" parent="map" enabled="false" onloaded="updatemask();" />-->
		
		view hlookat="-2" vlookat="60" fov="10" maxpixelzoom="1.0" />
	<display details="22" /> 

		<preview type="CUBESTRIP" url="area101cc.tiles/preview.jpg" />

	<image type="CUBE" multires="true" tilesize="671">
		<level tiledimagewidth="2013" tiledimageheight="2013">
			<left  url="area101cc.tiles/l2_l_%0v_%0h.jpg" />
			<front url="area101cc.tiles/l2_f_%0v_%0h.jpg" />
			<right url="area101cc.tiles/l2_r_%0v_%0h.jpg" />
			<back  url="area101cc.tiles/l2_b_%0v_%0h.jpg" />
			<up    url="area101cc.tiles/l2_u_%0v_%0h.jpg" />
			<down  url="area101cc.tiles/l2_d_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="1007" tiledimageheight="1007">
			<left  url="area101cc.tiles/l1_l_%0v_%0h.jpg" />
			<front url="area101cc.tiles/l1_f_%0v_%0h.jpg" />
			<right url="area101cc.tiles/l1_r_%0v_%0h.jpg" />
			<back  url="area101cc.tiles/l1_b_%0v_%0h.jpg" />
			<up    url="area101cc.tiles/l1_u_%0v_%0h.jpg" />
			<down  url="area101cc.tiles/l1_d_%0v_%0h.jpg" />
		</level>
	</image>

		<!-- place here scene local elements like plugins,hotspots, ... -->
	
		<!-- This is the intro Image code-->
   <events onloadcomplete="delayedcall(30, hideintroimage() ); set(events.onloadcomplete,null);" />
	
	<plugin name="introimage"
	        url="NCMbannerpaduk.png" 
			scale="0.5"
	        align="topcenter" x="0" y="20"
	        onloaded="set(alpha,0); tween(alpha,1.0);"
	        onclick="hideintroimage();"
	        /> 
	
	<action name="hideintroimage">
		if(plugin[introimage].enabled,
			set(plugin[introimage].enabled,false);
			tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage));
		  );
	</action>
	<!-- This ends the intro image code-->
				
		
		<action name="normalview">
		tween(view.hlookat, -2.0, 1.5, easeInOutQuad );
		tween(view.vlookat, 10,   1.5, easeInOutQuad );
		tween(view.fov,     80, 1.5, easeInOutQuad );
		tween(view.fisheye, 0.0, 1.5, easeInOutQuad, WAIT);
		set(display.flash10,on);
	</action>
	
	
<!-- This is the new reset made from the above normalview-->
			<action name="reset">
		tween(view.hlookat, -2.0, 1.5, easeInOutQuad );
		tween(view.vlookat, 10,   1.5, easeInOutQuad );
		tween(view.fov,     80, 1.5, easeInOutQuad );
		tween(view.fisheye, 0.0, 1.5, easeInOutQuad, WAIT);
		set(display.flash10,on);
	</action>
			<!-- end of new reset-->
		<!--<hotspot name="spot2" url="spot2.png" ath="-42" atv="-12" scale="0.6" zoom="true"
		         alpha="0.3"
		         onover="tween(alpha,1);tween(scale,1);"
		         onout="tween(alpha,0.3);tween(scale,0.6);"
		         onclick="looktohotspot(spot2); loadscene(scene2, null, MERGE, BLEND(1));"
		         />-->

	</scene>


This is the first scene in a 11 panorama tour, no matter what changes I make to line 12 above as seen here

Quellcode

1
2
view hlookat="-2" vlookat="60" fov="10" maxpixelzoom="1.0" />
	<display details="22" /> 
Nothing changes in the tour when it is run no matter what values I use. I don't even understand where the scene is actually getting its initial values for hlookat, vlookat and fov at all because it ignores this line completely. I am very baffled here and this is the last thing I need to do to finish this tour, any help very much appreciated because I am totally lost here. *confused*

Thanks

Rick

4

Dienstag, 19. Oktober 2010, 19:04

view hlookat="-2" vlookat="60" fov="10" maxpixelzoom="1.0" />
<display details="22" />

your missing the first < before view. try that.

Run

Anfänger

  • »Run« ist der Autor dieses Themas

Beiträge: 41

Wohnort: maryland. USA

Beruf: Photographer

  • Nachricht senden

5

Dienstag, 19. Oktober 2010, 19:21

Thank you so very much, I feel like a major dummy for not seeing that and I have been staring at this code for days. I really can't thank you enough.

Have a great day. *thumbsup*

Rick

6

Dienstag, 19. Oktober 2010, 20:21

glad that was it. no worries it has happened to me more times than i can count. your first code snipet shows it correctly which means maybe something else was wrong and when you fixed that this broke at the same time.