You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

1

Wednesday, December 30th 2009, 10:36pm

Smooth pan jumps

Is there currently a way to script smooth pan jumps from one view to another ?

If not I`d like to request the option. With more people making hires gigapixel images showed with KrPano we need better scripting of the viewer to show various points of interest in the image.

If you have a look at the Dresden image youll see that pan jumps follow a linear motion thats less than optimal: http://www.dresden-26-gigapixels.com/dresden26GP Click some times on the various point of interests, and then have a look at this Silverlight case and youll see the difference in user friendlyness: http://blogs.msdn.com/lutzg/archive/2009…animations.aspx

From the DeepZoom blog:

Quoted

Here's a problem: I want to pan smoothly from one area in a map to another. One way to do that is simply update Viewport Origin and ViewportWidth and let Deep Zoom handle the transition animation. Unfortunately that will lead to animations that look like you are traveling at the speed of light across the globe if you have large distances to cover.
Ideally, you'd want to zoom out a tad bit, nudge over a bit, and zoom back in. Well, thanks to Dan Cory and James Darpinian, we have such a solution. Based onthis paper, we implemented this.
Heres a paper on the subject: http://www.win.tue.nl/~vanwijk/zoompan.pdf

Theres also this paper: http://www.cs.umd.edu/hcil/jazz/learn/pa…-spacescale.pdf

Is this possible in KrPano ? If yes it will make the viewer much better suited for hires panos and zoomable images.

John Myrstad

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

2

Thursday, December 31st 2009, 6:12pm

May there be a way to make a "pseudo" effect like the effect proposed by some smart scripting ?

Is it possible to do with movto type smooth ? If yes, are there any examples online ?

Quoted

moveto(toH,toV,motiontype)
zoomto(fov,motiontyp)
lookto(toH,toV,fov,motiontype)

moves the view from current to the given position

parameters:
  • toH
    destination coordinate (-360 .. 360°)
  • toV
    destination coordinate (-90 .. +90°)
  • fov
    destination field of view (1 .. 179°)
  • motiontype (optional)
    can be:
    linear(speed) - linear movement
    - speed = moving speed in degrees/second

    smooth(accel,break,maxspeed) - accelerated smooth movement (=default)
    - accel = acceleration in degrees/second² (default=720)
    - break = negative acceleration in degrees/second² (default=-720)
    - maxspeed = maximum moving speed in degrees/second (default=720)

examples:
moveto(100.0,5,linear(10));
zoomto(130,smooth());
lookto(33,-22,30,smooth(100,50,20));

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

3

Friday, January 1st 2010, 11:22pm

The very basic GigaPan zooming interface also have smooth pan jumps: http://www.gigapan.org/gigapans/7746/

Is this something that may be achievable via a plugin solution ?

4

Saturday, January 2nd 2010, 8:18pm

Hi,
If you have a look at the Dresden image youll see that pan jumps follow a linear motion thats less than optimal: http://www.dresden-26-gigapixels.com/dresden26GP
right, they doing a linear motion via the tween() action,
have a look at the javascript on this page,

May there be a way to make a "pseudo" effect like the effect proposed by some smart scripting ?
yes, should be possible,

the default moveto/zoomto/lookto actions are designed for motions in a larger coordinates systems (e.g. 360x180),
but with the right (small) values for the smooth() function it should also work good for flat panos,
(flat panos in krpano are just partial panos defined with a horizontal field of view (hfov) of 1.0 degree),

e.g.

Source code

1
looktohotspot(get(name), 0.1, smooth(0.3, 0.5, 1.0));


other ways to change/control the motion would be either to use the tween() action
to change the "view.hlookat", "view.vlookat" and "view.fov" variables,

or use a external flash actionscript plugin or a simple javascript to change
these variables completely manually via krpano get() and set() interface,
that means read out the variables, calculate the new variables (position)
like you want and set them again,

best regards,
Klaus

  • "John Myrstad" started this thread

Posts: 91

Location: Norway

Occupation: Product Specialist @ www.fuglefjellet.no

  • Send private message

5

Saturday, January 2nd 2010, 8:36pm

I guess the best way to "jump" between two positions in multires panos would be to "zoom" out quit a bit, possibly up 60-75% of max fov, from the current position, and then have a smooth "jump" to the new position using the remaining fov and then zoom in.

How does the caching work ? Will higher levels of the pyramide be cached whan at a specific position/fov ? If you examine the GigaPan viewer youll see that it doesnt work very well cause it has black tiles while trying to do is smooth trajectory.

6

Monday, January 4th 2010, 6:13pm

How does the caching work ? Will higher levels of the pyramide be cached whan at a specific position/fov ? If you examine the GigaPan viewer youll see that it doesnt work very well cause it has black tiles while trying to do is smooth trajectory.
yes, if there is 'enougth' memory they will be cached,
and if not the preview image will be displayed,

just try it

best regards,
Klaus

Similar threads