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
double-click to "move to, center and zoom"
-
-
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
-
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
-
Hi,
here a complete xml only solution (doubleclick + zoom to click center)
Code
Display More<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 -
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!!! -
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.
-
To disable excessive zooming use maxpixelzoom or fovmin.
https://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.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!