|
Replies:
8
-
Pages:
1
-
Last Post:
20 Nov 23, 20:32
Last Post By: MarkusD
|
|
|
Posts:
1,086
Registered:
13-Apr-2006
|
|
|
|
Speed for panoramas is different
Posted:
20 Nov 23, 18:39
|
|
|
Hi Laza,
thanks for the improvements regarding panorama pictures. Using "Left or Top" for the start is what I like. Nevertheless the "Speed" toggle does not what I was expecting.
a) Even if I choose "Slow" the motion is way to fast.
b) The Speed for different panoramas is very different. It seems that the effective speed is calculated the wrong way. Wider pictures are played much faster than narrower ones.
Please compare some of them. The forth one will scroll very fast:
https://www.markus-drueck.de/public/2023%2010%2028%20Island/2023%2010%2028%20Island/index.html#label=Panorama
Do you confirm the different speeds? Is that what you intended? Don't you think the speed should be the same, no matter of the width?
Thanks in advance.
Link corrected.
|
|
|
Posts:
1,622
Registered:
6-Sep-2005
|
|
|
|
Re: Speed for panoramas is different
Posted:
20 Nov 23, 18:58
in response to: MarkusD
|
|
|
The speed should be constant across pictures, whatever their width is. There's only one constraint that could change it: the animation should be at least 1.5sec, and less than 20 secs. Here's the calculation:
duration = 1000 * Math.minMax(1.5, Math.abs(distance) / settings.speed, 20)
Possibly your panorama is too wide and would take more than 20 seconds to move from left to right. Perhaps I should adjust the max. time limit when one chooses the slow speed.
|
|
|
Posts:
8,879
Registered:
31-Jan-2006
|
|
|
|
Re: Speed for panoramas is different
Posted:
20 Nov 23, 19:30
in response to: MarkusD
|
|
|
Please compare some of them.
Bad link.
|
|
|
Posts:
1,086
Registered:
13-Apr-2006
|
|
|
|
Re: Speed for panoramas is different
Posted:
20 Nov 23, 19:37
in response to: Laza
|
|
|
The speed should be constant across pictures, whatever their width is. There's only one constraint that could change it: the animation should be at least 1.5sec, and less than 20 secs. Here's the calculation:
duration = 1000 * Math.minMax(1.5, Math.abs(distance) / settings.speed, 20)
Thanks for your fast response.
In my opinion there should be no minimum or maximum time at all.
Perhaps I should adjust the max. time limit when one chooses the slow speed.
Sounds good. Thanks.
|
|
|
Posts:
1,086
Registered:
13-Apr-2006
|
|
|
|
Re: Speed for panoramas is different
Posted:
20 Nov 23, 19:41
in response to: JeffTucker
|
|
|
|
Thanks for hint, I corrected it.
|
|
|
Posts:
8,879
Registered:
31-Jan-2006
|
|
|
Posts:
1,086
Registered:
13-Apr-2006
|
|
|
|
Re: Speed for panoramas is different
Posted:
20 Nov 23, 20:12
in response to: JeffTucker
|
|
|
I don't want to tell a story only with the pictures, actually I also want to tell a story with words.
But I changed the "design" of the folders, only the map is visible by default, all other "panels" "Weather forecast" etc, are closed. What I try to do is to have all panels closed by default and let the user decide if the first panel will be open in the future and store this as a kind of a cookie, but without success so far. Time will tell. 
|
|
|
Posts:
8,879
Registered:
31-Jan-2006
|
|
|
|
Re: Speed for panoramas is different
Posted:
20 Nov 23, 20:14
in response to: MarkusD
|
|
|
|
|
I don't want to tell a story only with the pictures, actually I also want to tell a story with words. 
Very informative, to include a bunch of JS variables in clear text. Visitors will be amazed. 
|
|
|
Posts:
1,086
Registered:
13-Apr-2006
|
|
|
|
Re: Speed for panoramas is different
Posted:
20 Nov 23, 20:32
in response to: JeffTucker
|
|
|
I don't want to tell a story only with the pictures, actually I also want to tell a story with words. 
Very informative, to include a bunch of JS variables in clear text. Visitors will be amazed. 
OK, now I got what you mean. Yes that is a problem. This is because my comments starts with some code. I have no idea how to workaround that problem.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|