You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2013-01-06 23:02:42

lovelace
Member
From: Herefordshire, UK
Registered: 2013-01-01
Posts: 10

lock auto rotate to zoom level

I've just started creating simple pans in PTP and noticed that when you zoom in to a pan then start auto rotate, the view zooms out again effectively the view sprials out. How do you lock auto-rotate to the zoom level that the viewer is using?

Offline

 

#2 2013-01-06 23:11:36

klausesser
Member
From: Düsseldorf, Germany
Registered: 2006-05-22
Posts: 6436
Website

Re: lock auto rotate to zoom level

lovelace wrote:

I've just started creating simple pans in PTP and noticed that when you zoom in to a pan then start auto rotate, the view zooms out again effectively the view sprials out. How do you lock auto-rotate to the zoom level that the viewer is using?

Set the fov in the xml.

<panoview h="178.39" v="-0.06" fov="90"/>
    <!-- Parameter anzeigen -->
    <view fisheye="0" limitview="range" hlookatmin="-180" hlookatmax="180" vlookatmin="-90" vlookatmax="90" maxpixelzoom="1.0" fovmax="90" fov="90" hlookat="178.39" vlookat="-0.06"/>

Means it keeps @90"-

Or with autorotate:

As example: 
<autorotate horizon="-0.06" tofov="90" waittime="3" speed="3"/>

But when you write:
<autorotate horizon="-0.06" tofov="60" waittime="3" speed="3"/>

It will go to 60° while rotating and stays @60°. Example: start at 90° and goes to 60° whith autorotation (to avoid heavy distortion while rotating):
http://360impressions.de/MKP_Panorama/

best, Klaus

Last edited by klausesser (2013-01-06 23:13:35)


If you want something you´ve never had,
then you´ve got to do something you´ve never done.

Offline

 

#3 2013-01-06 23:19:47

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9732
Website

Re: lock auto rotate to zoom level

lovelace wrote:

I've just started creating simple pans in PTP and noticed that when you zoom in to a pan then start auto rotate, the view zooms out again effectively the view sprials out. How do you lock auto-rotate to the zoom level that the viewer is using?

You will have to edit the XML files (optionally) created when you build the tour if you have Panotour Pro.

See krpano documentation - for the relevant attributes 'horizon' and 'tofov' (you'll have to enable the advanced settings):

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


Uploaded Images

Last edited by mediavets (2013-01-06 23:23:01)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Online

 

#4 2013-01-07 11:18:49

lovelace
Member
From: Herefordshire, UK
Registered: 2013-01-01
Posts: 10

Re: lock auto rotate to zoom level

That's great thanks! Just uploaded the modified swf + xml files. 
http://www.bosci.net/cadora/ptp.html
works well except for some reason the initial preview is vertically squashed - obviously need to play around with the default html file.
Do I take it that PTP is an extended version of krpano?

Offline

 

#5 2013-01-07 11:41:54

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9732
Website

Re: lock auto rotate to zoom level

lovelace wrote:

Do I take it that PTP is an extended version of krpano?

The krpano Flash and HTML/javascript Panorama Viewers are controlled by XML format command files.

PT/PTP are GUI front-end command code file generators for the krpano Panorama Viewers.

PTP allows you to make the XML files accessible for further editing, you can also export the embedded krpano licenses (from PTP) if you wish to use the krpanotools separately.

Last edited by mediavets (2013-01-07 11:43:21)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Online

 

#6 2013-01-07 12:50:21

lovelace
Member
From: Herefordshire, UK
Registered: 2013-01-01
Posts: 10

Re: lock auto rotate to zoom level

Clearly PTP/krpano exposes much functionality.
I have done some basic coding but happy to get into it deeper.
Would it be possible to code the following :
For environmental monitoring work it would nice to have compass point and elevation graduation marks  along the bottom and side of the view. So, as you pan horizintally the compass graduations would move as if you had a real compass. As you zoomed in or out the graduation marks would change accordingly. Similarly as you changed elevation.
The attached image is a crude sketch of what I had in mind.


Uploaded Images

Offline

 

#7 2013-01-07 13:48:03

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9732
Website

Re: lock auto rotate to zoom level

If you look at these links and I think you could envisage that what you wish to achieve must be possible:

http://krpano.com/forum/wbb/index.php?p … eadID=6655

http://virtualtuur.com/krpano/compass/

http://krpano.com/forum/wbb/index.php?p … readID=520

http://www.kolor.com/forum/t16253-compa … action=new

http://fullinside.fr/compas/alti.html

It might be better to post your question on the krpanpo forum because there are more hand coders there than here:

http://krpano.com/forum/wbb/index.php?l=2

When hand coding be aware that PTP/PTP currently incorporate krpano 1.0.8.14 rather than  the latest release of krpano 1.0.8.15.

Last edited by mediavets (2013-01-07 14:02:50)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Online

 

#8 2013-01-07 16:12:18

lovelace
Member
From: Herefordshire, UK
Registered: 2013-01-01
Posts: 10

Re: lock auto rotate to zoom level

Thanks that does indeed look doable, will give it some quality time in due course.
So, if I was prepared to to code krpano I didn't need to buy PTP?
BTW I'm not complaining as PTP got a professional done that needed doing quickly but PTP is no more than a GUI for krpano, right?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson