You are not logged in.

1

Thursday, March 14th 2013, 9:27am

visited pano icon

Hellow to all!

I´m trying to make a very big virtual tour and I wonder if somebody has found a way to change the icon of a hotspot that points to a scene already visited. My goal is to show from scene1 that scene2 is visited in a quick look.



Thanks to all.

jordi

Professional

Posts: 583

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

2

Thursday, March 14th 2013, 12:51pm

you should specify a bit more what you need to do...

where do you want to show it ?

I understand in the hotspot, so once you have visited scene2, the hotspot from scene1 that's pointing to scene2 get a different color ?
everpano.com step beyond 360

3

Friday, March 15th 2013, 9:21am

Thanks Jordi, that´s exactly what I´m looking for, that way users could know if they have visited that pano before they get in, but I´m blocked searching how to do it...

4

Friday, March 15th 2013, 10:01am

Hi ramon,

just set a var when the pano is visited the first time and check inside the hotspots-url for the value of this var.

Best regards
Nupsi

5

Friday, March 15th 2013, 11:51am

Thanks Nupsi, I´m going to try to follow your indications, it´s gonna be hard because I´m designer not programmer... and the if/else and things like this causes me headache. Time to work hard, thanks again!!

kosmodroms

Beginner

Posts: 40

Location: Latvia

Occupation: Kosmodroms | Digital Creative Studio - programmer, designer

  • Send private message

6

Tuesday, March 19th 2013, 11:58am

I like this idea, so I played around and got this to work. Here you go:

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
74
75
76
77
78
79
80
81
82
83
84
85
	<!-- events	-->
	<events onnewpano="updatevisitedhs();" />	


	<!-- actions -->

	<action name="startup">
		<!-- showlog(); -->
		loadscene(get(scene[0].name), null,MERGE,BLEND(1));
	</action>
	

	<action name="setvisited">
		set(data[%1].content, "true");
	</action>

	<action name="updatevisitedhs">
		set(hsname, "hs_to_");
		txtadd(hsname, get(xml.scene));
		setvisited(get(hsname));
		
		for(set(i,0), i LT hotspot.count, inc(i), 
			set(hsname, get(hotspot[get(i)].name));

			<!-- trace('name = ', get(hsname), " visited = ",  get(data[get(hsname)].content) ); -->
			
			if( get(data[get(hsname)].content), 
				changetovisited(get(hsname)), 
				changetonotvisited(get(hsname)) 
			);

		);		
  	</action>

  	<action name="changetovisited">
  		set(hotspot[%1].url, %BASEDIR%/hotspots/goto-visited.png);
  	</action>

  	<action name="changetonotvisited">
  		set(hotspot[%1].url, %BASEDIR%/hotspots/goto.png);
  	</action>

	<action name="gotoscene">
		loadscene(%1, null, MERGE, BLEND(1));
	</action>


	<!-- goto hotspot style -->
	<style 
		name="gotostyle" 
		url="%BASEDIR%/hotspots/goto.png" 
		onclick="gotoscene(get(scenetoload));" 
		/>


	<!-- scenes -->
	
	<scene name="scene1">

		........ image

		<!-- goto gotspots -->
		<hotspot name="hs_to_scene2" style="gotostyle" ath="0" atv="0" scenetoload="scene2" />
		<hotspot name="hs_to_scene3" style="gotostyle" ath="20" atv="0" scenetoload="scene3" />

	</scene>


	<scene name="scene2">
		

		........ image 

		<hotspot name="hs_to_scene1" style="gotostyle" ath="0" atv="0" scenetoload="scene1" />
		<hotspot name="hs_to_scene3" style="gotostyle" ath="20" atv="0" scenetoload="scene3" />
	</scene>

	<scene name="scene3">
		

		........ image

		<hotspot name="hs_to_scene1" style="gotostyle" ath="0" atv="0" scenetoload="scene1" />
		<hotspot name="hs_to_scene2" style="gotostyle" ath="20" atv="0" scenetoload="scene2" />
	</scene>
Edgars
Kosmodroms | Digital Creative Studio
www.kosmodroms.lv

7

Friday, July 12th 2013, 11:15am

Wow Kosmodroms, thanks a lot it´s just what I was looking for, sorry for the delay in answering but I was crazy with making krpano apps on ios and android.

Thanks again!!!

Arsdezi

Intermediate

Posts: 174

Location: Ukraine

  • Send private message

8

Sunday, July 14th 2013, 1:54pm

Wow! Great idea!
I'll take it, thanks!
*attention*
Panoreal — to make and see this wonderful world! *whistling*