You are not logged in.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,321

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Thursday, January 13th 2011, 5:39pm

viewmode

Hi all,

i can't get this viewmode 3D working..
testing here..

http://www.virtualtuur.com/delicious/
it's on beta 12

click on the most right green leaf for location.

i put in xml:

Source code

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
<action name="maps_rot">
	    copy(hlookat,view.hlookat);
		  set(plugin[map].yaw,get(hlookat));
	    vector_map();
			set(plugin[map].pitch,get(vlookat3));
	</action>

	<action name="vector_map">
	  copy(vlookat2,view.vlookat);
		roundval(vlookat2,1);
  	add(vlookat2,-55);
  	sub(vlookat3,0,get(vlookat2));
  	
  	if(vlookat3 LT 14, set(vlookat3,14));
  	if(vlookat3 GT 65, set(vlookat3,65));
	</action>



	<!-- google map -->
	<plugin name="map" 
	        parent="STAGE"
	        url="../P/plugins/googlemaps.swf"
	        keep="true"
			alpha="0"
	        blendmode="layer"
	        align="leftop" 
	        x="1%" 
	        y="100"
	        width="25%"
	        height="60%"
	        visible="false"
			
						viewmode="3D"
			roll="0"
			pitch="55"
			yaw="0"
			


	        key="xxxxxxxxx"

			lat="52.701535"
			lng="5.292985"
			zoom="15"
			maptype="SATELLITE"
	        maptypes="satellite|normal|hybrid"

			dragging="true"
			scrollwheel="true"
			continuouszoom="true"
			
			>
			
			
			  
			  
		<positioncontrol visible="false" anchor="topright"  x="1%" y="20" />
		<maptypecontrol  visible="true" anchor="topleft" x="0" y="0" buttonalign="h" />
		<zoomcontrol     visible="true" anchor="topleft" x="0" y="40" hasscrolltrack="true" />
		
		
		
		
			
			
			
		<radar visible="true" size="100" alpha="0.33" fillcolor="0xCCFF00" fillalpha="0.9"
			   linecolor="0xFFFFFF" linealpha="0.0" linewidth="0.0"
			   glow="true" glowcolor="0" glowwidth="4" glowstrength="3"
			   behindspots="true" dragable="true"
			   />
			   


etc etc and:

Source code

1
2
3
4
<events onenterfullscreen=""
	    onexitfullscreen=""
		onxmlcomplete="action(onstart);"
		        onviewchange="maps_rot();" 


any idea?

Thanx

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Thursday, January 13th 2011, 7:27pm

Tuur you have everything needed it should be working. Its almost like it is not detecting the onviewchange. 2 thing I would do to test. change onviewchange to another action make sure it is even being executed. try something like

<events onviewchange="set(fullscreen, true);" it should go fullscreen soon as you move the mouse. if it does not that tells me for some reason onviewchange is being ignored.

other test I would then try is to change

<events onviewchange="maps_rot()" to something else like maps_rot2() it. save and refresh it should error out saying action not found. if it does error out for maps_rot2 but not maps_rot that means it IS seeing maps_rot action and something else is causing it not to spin. just trying to think out loud here your code seems right to me.

SIDENOTE: once you do get the map to spin you will notice that the radar is not usable it spins at the same time as the map itself and can never stay accurate. i think the radar spins 2 full revolutions for every 1 revolution of the map.

3

Thursday, January 13th 2011, 8:51pm

Hi, Tuur

Working at home on 3D ;-)

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,321

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Thursday, January 13th 2011, 11:11pm

ah !!
tell me more, show me some. *thumbsup* *thumbsup*

gonna check that map thing now

T
http://www.virtualtuur.com
Skype:studiotuur

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,321

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

5

Thursday, January 13th 2011, 11:44pm

ahh got it..

get a new api key..
*love*

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,321

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

6

Thursday, January 13th 2011, 11:47pm

and the compass code is obstinate..

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

7

Friday, January 14th 2011, 12:03am

ahhh yes! the radar has an onviewchange event in order to work also. it must have overwritten your other onviewchange.