You are not logged in.

martinvh

Beginner

  • "martinvh" started this thread

Posts: 24

Location: Utah, USA

  • Send private message

1

Tuesday, May 8th 2012, 6:37am

Hiding Loaders on Reloads

Hi All,

I am working on a 2 panorama vrtour. I have suppressed the showload and showwait bar and spinner and my load.png when the second panorama loads, but am having trouble hiding these 3 items when the first panorama is reloaded. I assume this would be some sort of onclick action with the thumbnails, but don't know how to write it. Any help is appreciated.

Thanks,

Martin

martinvh

Beginner

  • "martinvh" started this thread

Posts: 24

Location: Utah, USA

  • Send private message

2

Wednesday, May 9th 2012, 7:42am

Initial Progress Bar/Load Image for Tour

I've been poking around a bit, learned a lot, but could use help getting pointed in the right direction. I have the following elements which I would like to have appear in the initial startup only of a tour.I don't want any of these elements to appear again afterwards.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<progress showload="bar(center,250,5,0,10,shaded,0x000000,0x999999,0x666666)"
		showwait="none"
		showreloads="false"
		  parent=""
      	/>
   	
      	<plugin name="load" url="load.png"
	  	zorder="1"
	  	align="center"
	  	x="0"
	  	y="0"
	  	visible="true"
	   		/>      		

	  	<events onloadcomplete="set(plugin[load].visible,false);" />


So my question is, should I have these elements in the <action name="startup"> events, and suppress them everywhere else, or should I have them included with the first scene, but suppress them at the thumbnail onclicks? I realize that in these other areas, the code needs to be written differently, but I'm not getting it right.

Sorry for this poorly worded question, I obviously know next to nothing about coding.

Thanks,

Martin

This post has been edited 1 times, last edit by "martinvh" (May 10th 2012, 7:04am)


3

Friday, May 11th 2012, 1:05pm

Hi,

sorry, but it depends how your tour and xml file is structured and how you load the panos and how and where your load <plugin> images were defined...

without these information it's not possible to answer that question...

best regards,
Klaus

martinvh

Beginner

  • "martinvh" started this thread

Posts: 24

Location: Utah, USA

  • Send private message

4

Friday, May 11th 2012, 4:35pm

Hi Klaus, and thank you for such a great program. I've attached my xml file as it sits at the moment.

All The Best,

Martin
martinvh has attached the following file:
  • tour.xml (6.32 kB - 66 times downloaded - latest: Oct 6th 2023, 12:15pm)

5

Saturday, May 12th 2012, 10:00am

Hi,

this loadscene call in your xml is wrong:

Source code

1
loadscene(get(linkedscene),MERGE,KEEPVIEW,BLEND(1),);


See here the right syntax:
http://krpano.com/docu/actions/#loadscene

With your current code only set only the KEEPVIEW flag, the MERGE flag is at the wrong place!
And without MERGE flag the settings will not be kept when loading new scenes.

Addtionally move that part:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<progress showload="bar(center,250,5,0,10,shaded,0x000000,0x999999,0x666666)"
		showwait="none"
		showreloads="false"
		  parent=""
      	/>
      	
      	<plugin name="load" url="load.png" 
	  	zorder="1"
	  	align="center"
	  	x="0"
	  	y="0"
	  	visible="true"
	   		/> 			
		<events onloadcomplete="set(plugin[load].visible,false);" />

outside the <scene> and add keep="true" to the "load" <plugin>.

Best regards,
Klaus

martinvh

Beginner

  • "martinvh" started this thread

Posts: 24

Location: Utah, USA

  • Send private message

6

Saturday, May 12th 2012, 5:16pm

Thanks Klaus, this works perfectly now, and I learned quite a bit along the way.

Best,

Martin