Sie sind nicht angemeldet.

1

Mittwoch, 11. Mai 2011, 20:35

Loading bar with numbers

Hi,

Does anyone know if there is a plugin or some xml code to add numbers to the loading bar?
i.e to add the total size of the pano being loaded as well as a counter from 0 to the total size of the pano that changes values while loading the bar.

Thanks.

RT

2

Freitag, 13. Mai 2011, 12:25

So has no one ever felt the need to have numbers on the loading bar ...?

3

Donnerstag, 2. Juni 2011, 19:35

I have but I'm still waiting for a guru to reply ;-)

4

Donnerstag, 2. Juni 2011, 21:53

it would be nice to have a number choice, either 0-100% or kilobytes.

5

Freitag, 3. Juni 2011, 04:15

Hi all,

Could not the variable progress.progress be used for this purpose?
Something like:

Quellcode

1
2
3
4
5
6
<action name="prog">
	mul(prog_val,get(progress.progress),100);
	txtadd(prog_val,get(prog_val),%);
	trace(prog_val); <!-- should be replaced by an displaying process -->
	ifnot(progress.progress GE 1,delayedcall(0.03, prog() ));
</action>


SAlut.

6

Freitag, 3. Juni 2011, 04:38

Hi!
yes it is

michel - I tryed with delayedcall, If fast internet then value of progress = 0 and you can't get bytesloaded, even if i set delay to 0.001
but it's working with wait(0.01) - but then you will see stepwise
need progresschange event.

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

7

Freitag, 3. Juni 2011, 05:20

Hi Andrey *smile* ,

Zitat

I tryed with delayedcall, If fast internet then value of progress = 0 .......
This sound strange... At the end of the progress process it should have a value of 1....
So, I have made an progress example test and it seem to work *rolleyes* ...

Andrey, I take this occasion to tell you the great work you are making here *thumbup* ... Keep the good job ;-) ...

SAlut. Приветствие. *squint*

8

Freitag, 3. Juni 2011, 05:32

Michel, ok, i see, i'm used progress.isloading


<action name="showprogress">
trace(get(progress.progress));
trace(get(progress.bytesloaded));
if(progress.isloading, delayedcall(0.01, showprogress();); );
</action>

Thanks for your example *thumbup*


Andrey


p.s.

Zitat

Andrey, I take this occasion to tell you the great work you are making here *thumbup* ... Keep the good job ;-) ...
Thank you for your appreciation *love*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

9

Freitag, 3. Juni 2011, 13:19

Hi Michel
It seems not working in scene mode only appear 0% and 100% *confused*

10

Freitag, 3. Juni 2011, 13:30

Oups !!

I got it, I have a wait(blend) and it's normal that it's not working sorry *love*

11

Freitag, 3. Juni 2011, 16:36

i does not work using scenes for me and I am not using blend.

loadscene(scene_arcade 1) is all I use to jump to next scene.

and this is my onstart for each scene.

onstart="prog(); set(plugin[titletext].html, '[p]Arcade 1[/p]'); thumbnails_visited(thumbs1,0,true); thumbnails_current(thumbs1,0);

most of the time it does not show if you click through the scenes once in a great while it works. it always works if the scene is the first one selected using swf addressing they do not work once the first scene is loaded moving to the next. here is a link to see it in action.

http://virtualnorthland.com/duluth/az/

12

Freitag, 3. Juni 2011, 16:48

Hi VN2011 *smile* ,

It seem that the variable progress.progress does not reset its value after it reach value 1...
I do not know why this happens *huh* ...

SAlut.

13

Freitag, 3. Juni 2011, 17:15

hmm that is disappointing. i tried to add this to the end and it did not help. if(progress.progress == 1, set(progress.progress,0));

Job1 do you have this working corrcetly using scenes? if so can you show the code you used to get it to work?

14

Freitag, 3. Juni 2011, 17:22

Hi VN2011,

set(progress.progress,0) cannot work because this variable is an (read only) variable....

SAlut.

15

Freitag, 3. Juni 2011, 17:26


Job1 do you have this working corrcetly using scenes? if so can you show the code you used to get it to work?


Its working with the Michel's code (greats thank's to us), but you have to take off the wait(load) or blend *thumbsup*

Quellcode

1
2
3
4
5
6
7
<action name="prog">
		mul(prog_val,get(progress.progress),100);
		roundval(prog_val);
		txtadd(prog_val,get(prog_val), % loaded);
		showtext(get(prog_val), infostyle);
		ifnot(progress.progress GE 1,delayedcall(0.01, prog() ));
	</action>


you have to put it on the onstart scene

Quellcode

1
<scene name="accueil" onstart="prog(); playsound(acc, fontain.mp3,loops);">


and it working in each scene ;-)

16

Freitag, 3. Juni 2011, 18:14

but you have to take off the wait(load) or blend


hmm i am not using either wait(load) or blend. like i said above i only use loadscene(newxml.xml); no wait no blend. i have no idea why it is not working in my scenes.

17

Freitag, 3. Juni 2011, 20:09

VN2011

Do you update yours krpano.swf and swfkrpano.js ? *question*

Nothing appear ?

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

18

Freitag, 15. März 2013, 14:08

Hum interesting way to show percent loading value, unfortunately it doesn't work for me : it goes from 0% to 100% directly even if pano is not full loaded...
Is it because it's a multi resolution panorama ?

http://www.360images.fr/streetgraff/

Ähnliche Themen