View Full Version : autorotation only at startup
carel
05-11-2008, 12:47 AM
Is there a way to have autorotation *not* resume after one has used click & drag? Autorotation serves a function for making people aware that they are looking at a pano and for automated tours, but it becomes very irritating after one has figured out how to click & drag to look around in the pano.
Carel Struycken
cheathamlane
05-11-2008, 02:07 AM
Have you tried putting a function on the <pano> element? That would be the most obvious way to intercept a mouse press or mouse click event, screen-wide.
ceeby
05-11-2008, 04:29 AM
I'm interested in this topic as well. What would I put in the <pano> field to stop the autorotation? Unfortunately, the autorotation on my setup is a CPU killer and I've stopped using it, but wanted to alert the user that they need to interact with the pano by clicking and dragging.
Thanks :)
ceeby
p.s. Hey Carel...I see you've ventured into the Flash Pano Player world. Welcome and good luck.
cheathamlane
05-11-2008, 03:14 PM
Well, you would put the same thing you would put on, say, a hotspot "onclick" to start/stop the rotation.
external.autorotator.disabled+=1;
or
external.autorotator.disabled=1;
or
external.autorotator.disabled=0;
Looking at the FPP Hotspots documentation, I would suggest using the "onPress" event. In my FPP docs, this is at: tutorials/hotspots.html#pano_onPress
HTH
aiwetir
10-18-2009, 05:13 AM
sorry to revive an old topic, but i can't seem to get anything to work with this, can someone post something that works
thanks
HansNyberg
10-18-2009, 07:53 AM
sorry to revive an old topic, but i can't seem to get anything to work with this, can someone post something that works
thanks
I can not understand that none has mentioned the simple solution.
Just set the pause parameter to a very high number.
I usually have it set to 12 seconds like below but if you set it to 60 seconds it will be the same as it never starts again.
Hans
<autorotator>
speed = -0.3
interval = 30
pause = 12000
quality = medium
</autorotator>
Trausti Hraunfjord
10-18-2009, 08:29 AM
Yes Hans, but as I understand the original request, the autorotator should start in the beginning, and at the first interaction by the user, it should be stopped for good.
By putting it at 12 seconds or 60 seconds, the autorotator will not start at all in the beginning, and people might think it's a static image.
HansNyberg
10-18-2009, 08:42 AM
Sorry Tuddi you are wrong. I am the xml programmer not you.
Pause means pause after stopping it with click in pano.
Here is a 12 sec pause
http://www.panoramas.dk/US/car-free-times-square.html
Hans
Trausti Hraunfjord
10-18-2009, 09:03 AM
Sorry Hans, regardless of you being the "xml programmer" and not me (correct enough)... the pano starts again after the 12 seconds of pause.
The original request was about "NOT RESUMING" the autorotation after interaction by the viewer.
It was NOT a request of having the autorotation starting again after 12 seconds or 60 seconds or some minutes.
So... the simple answer to this is still not there.
Being an xml programmer obviously does not help in this case :)
HansNyberg
10-18-2009, 09:10 AM
As I said in practical use for the visitor setting it to 60 sec means that it does not start again so it solves the problem he asked for.
Only 1 in 100 uses more than 1 minute per pano after it has loaded.
Hans
Trausti Hraunfjord
10-18-2009, 09:23 AM
Yes, in practical terms, but not in literal terms.
It would be good to have a complete autorotator "kill" after the first interaction.
Trausti Hraunfjord
10-18-2009, 09:49 AM
Doing a simple test, setting the autorotator pause at 12000 ms, will result in the pano not moving at all for the first 12 seconds... I am no xml programmer, but was that the real intention of the initial request? Wasn't the initial request about having the pano to move, in order to get the viewing "public" to understand that the image is interacive.. have them to interact, and thereby stopping the autorotation... and... well....enable the viewing public to enjoy the ride?
Trausti Hraunfjord
10-18-2009, 10:28 AM
Sorry Tuddi you are wrong. I am the xml programmer not you.
Having thought about th at for a while, I still don't get it... especially since you didn't provide a clear cut answer to the original question.
Ihave to ask you Hans: "Why are you saying that you are a xml coder, indicating that you know better than me (others that are not coders) .. while you do not provide an answer to the original question? "
Anyone (without coding experience) could have answered the original question with something like: "Just close the tab, and there will be no problem". Obviously that would not solve the question... nor does your answer.
You know it.
I know it.
Everyone knows it..
So why provide an answer that is not THE answer?
In my OPINION, the only right answer for the question asked would be: "It CAN NOT BE DONE in FPP."
How hard is that to say?
HansNyberg
10-18-2009, 11:06 AM
Ok I can see that I did not paste the whole code for you.
Did you not test the link I gave you?
You need of course also to ad a Global disabled=0 on start.
This one is with 60sec stop after clicking and just as my first one it starts rotating at once.
http://www.panoramas.dk/2009/lake-annecy-paragliding.html
<autorotator>
speed = -0.3
interval = 30
pause = 60000
quality = low
quality2 = medium
</autorotator>
<hotspots>
<global onStart="external.autorotator.disabled=0">
Virtualguide
10-18-2009, 11:14 AM
Hi boys,
this is not autorotator,but the same can be applied to it also:
http://www.tikzilina.sk/virtualnysprievodca/vs
here is xml:
http://www.tikzilina.sk/virtualnysprievodca/vs/01_0.xml
So, what's there?
I have following spot:
<spot id="active" url="layout/active.png" distorted="0" static="1" align="CB" salign="CB" staticY="-41" scaleY="0.57" depth="6" alt="click end control panorama manually" onPress="activate()" />
the picture is here:
http://www.tikzilina.sk/virtualnysprievodca/vs/layout/active.png
(it's transparent .png picture)
notice the function called onPress event:
activate="
external.autorotator.disabled=1
...
active.visible=0
auto.visible=1,2000
auto.blikanie()
manual.visible=0,1000
stopauto()
"
I have another function stopauto here:
stopauto = "
external.autorotator.disabled=1
pano.pan_v+=0.001
pano.tilt_v+=0.001
pano.zoom_v-=0.001
"
which causes panorama's immediate stopping
(As U see, for these purpose (to stop autorotator) I could call directly func. stopauto, but with activate func. I wanted to do some other things also....)
As U can see I have active.visible=0 in activate func.
I hide the .png image. There is no need for me to show it. User can run autorotator and again stop it by clicking on appropriate icon in my menu panel... but would be no problem to make another func. - by clicking on autorotation button should be spot active put to visible again and it should work the same way.
allSaints
10-18-2009, 11:20 AM
Well, all you really have to do is to add this line:
<pano onPress="external.autorotator.disabled=1"/>
and there will be no more auto panning after you have panned yourself.
HansNyberg
10-18-2009, 11:32 AM
And here is even simpler.
http://www.panoramas.dk/2009/sydney.html
This starts rotation after 1sec and stops it completely when you click in pano.
<autorotator>
speed = -0.3
interval = 30
pause = 1000
quality = low
quality2 = medium
</autorotator>
<hotspots>
<global>
<pano onPress="external.autorotator.disabled=1"/>
HansNyberg
10-18-2009, 11:33 AM
UPS
Sorry Tommy I had not seen you already posted that.
allSaints
10-18-2009, 11:34 AM
No problem, Hans - I'm sure nobody will miss it now. :)
Virtualguide
10-18-2009, 11:42 AM
ups, really? how simple!
:-)
I did not ever thought to make something like pano onPress :-)
Very good! Thank U !
:D
Trausti Hraunfjord
10-18-2009, 11:54 AM
hehe... as they say... FPP has it all. It only takes a brain to catch it all.
You are right (both of you)... this does what was required.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.