Sie sind nicht angemeldet.

immersium

Schüler

  • »immersium« ist der Autor dieses Themas

Beiträge: 66

Wohnort: Chambéry, Savoie, France

Beruf: GM Multimedia Company

  • Nachricht senden

1

Montag, 16. August 2010, 20:34

double-click to "move to, center and zoom"

Hi
I'm currently building a tour that contains 360 views AND a gigapixel panorama and would like find a way to center and zoom where once do a double click, just like Gigapan behaves (you can see the gigapixel in question here: http://gigapan.org/gigapans/56795/
I'm researched the forum, found some topic related to my question, but no clear answer.
Anybody could help?
Thanks, Thomas from Immersium
Websites : Immersium
Facebook page : http://www.facebook.com/pages/Immersium/131615226886648
Nikon D300 + Nikkor 10.5mm + 360Precision Absolute
Gigapan + Canon G9

2

Dienstag, 17. August 2010, 03:19

immersion,

I dont think double clicks work yet,,...are you trying just fill the screen at start? Have you tried playing with the fov initial settings,..these are settings from one i did in the past.



<view hlookat="-0.06" vlookat="-0.06" fov=".07" maxpixelzoom="1.0" />

rob

or you'll have to make a button/plugin to action to your desired look

3

Dienstag, 17. August 2010, 16:22

The intrepid Michel has posted a working solution for double-clicking to center/zoom. See here

Michel's post is one of my favorite krpano customizing posts ever!

steve

4

Mittwoch, 18. August 2010, 08:44

Hi,

here a complete xml only solution (doubleclick + zoom to click center)

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    <control mousetype="drag2D" />

    <events onmousedown="copy(lastmx,mouse.x);
                         copy(lastmy,mouse.y);
                         if(clicks === null, set(clicks,0));
                         inc(clicks);
                         delayedcall(0.3, set(clicks,0));
                        "
            onmouseup="if(lastmx == mouse.x,
                          if(lastmy == mouse.y,
                             if(clicks GE 2,
                                 set(clicks,0);
                                 mul(tofov,view.fov,0.5);
                                 if(tofov LT view.fovmin, copy(tofov,view.fovmin));
                                 screentosphere(mouse.x,mouse.y,toh,tov);
                                 adjusthlookat(get(toh));
                                 tween(view.hlookat,get(toh));
                                 tween(view.vlookat,get(tov));
                                 tween(view.fov,get(tofov));
                                );
                            );
                         );
                        "
            onmousewheel="stoptween(view.hlookat,view.vlookat,view.fov);"
            onkeydown="events.onmousewheel();"
            />


best regards,
Klaus

immersium

Schüler

  • »immersium« ist der Autor dieses Themas

Beiträge: 66

Wohnort: Chambéry, Savoie, France

Beruf: GM Multimedia Company

  • Nachricht senden

5

Sonntag, 22. August 2010, 21:38

Thanks a million for all the replies, I'm now close to a great virtual tour, again produced using KRP.
Klaus, you are my star!!!
Websites : Immersium
Facebook page : http://www.facebook.com/pages/Immersium/131615226886648
Nikon D300 + Nikkor 10.5mm + 360Precision Absolute
Gigapan + Canon G9

6

Montag, 4. Oktober 2010, 08:09

Duplicating the gigapan (and google maps) interface

While the various control plugins are nice and configurable (though I am still trying to piece through the docs on the contributed toolkit one) I would like to request a standard feature which duplicates the interface which is used by google maps, and gigapan. Gigapan adopted it because google maps has trained a billion people to know and use it already. One may feel one can do a better interface but there is a huge advantage to using one people know immediately.

This is the zoom slider in the upper left corner under a pan, drag2d dragging, double click to center and zoom, arrow keys and mouse wheel, page up/page down/home/end for big moves, and a few other elements. It seems that krpano can probably do almost all of this already, but it would be nice to have a single package or plugin or provided XML snippet to make it happen. You might need to do a slight reworking of the graphics to avoid copyright issues and you would not have the streetview little man.

Another feature of gigapan that I am curious on how to do is their initial view which shows the whole pano at once (as a rectangle, ie. no attempt to make it a rectilinear image) with black bars above and below that you can zoom into. At present you can only zoom out so the pano fills the height of the box -- is there a way to allow zooming further? And also a way to disable zooming to the point of complete blur? I would like to set it so they don't zoom any more than 200%, for example.

Thanks for consideration. I just bought krpano and am still learning.

7

Dienstag, 5. Oktober 2010, 03:50

To disable excessive zooming use maxpixelzoom or fovmin.

http://krpano.com/docu/xml/#view

krpano 1.0.8 beta (Flash10, QTVR, Zoomify, Partials Panos, ...)

You can easily make your own plugins if you learn a bit of Flash! In the process if you have specific questions you can always ask for help here.

Ähnliche Themen