You are not logged in.

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


#1 2011-03-08 18:44:02

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

How to control mouse drag direction

Hi
I find the default direction that the mouse drags the pano to be quite un-intuitive. I've visited other panos where the mouse drag works in the opposite direction.
I can't see any way to change it in Panotour. Have I missed something?
Looking through the krpano documentation, the relevant code appears to be:
<control mousetype="drag2D" />
If this is right, where in the themes xml should I put this code?
Many thanks
Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#2 2011-03-09 01:30:07

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2678
Website

Re: How to control mouse drag direction

Hi Mike,

did try it - and I could not add it to any of the ..../themes/xxx.xml (xxx for e.g. 2D.xml) files.
no error occured after reloading PTP and after assinging the added theme and export. could not find the code block in final pano tour files.

so I did manually adding the code to the xxx.xml file (xxx for chosen project name) I added the sourcecode between final
</action>
-> here
</krpano>

Code:

...
</action>
<control usercontrol="all"
         mousetype="drag3d"
         zoomtocursor="false"
         zoomoutcursor="true"
         mouseaccelerate="1.0"
         mousespeed="10.0"
         mousefriction="0.8"
         mousefovchange="1.0"
         keybaccelerate="0.5"
         keybspeed="10.0"
         keybfriction="0.9"
         keybfovchange="0.75"
         keybinvert="false"
         fovspeed="3.0"
         fovfriction="0.9"
         movetocursor="none"
         cursorsize="10.0"
         headswing="0.0"
         keycodesleft="37"
         keycodesright="39"
         keycodesup="38"
         keycodesdown="40"
         keycodesin="16,65,107"
         keycodesout="17,89,90,109"
         touchfriction="0.87"
         trackpadzoom="true"
         />
</krpano>

this method did work, but whenever PTP project gets updated and reexported the made manual changes are lost...

Georg

Last edited by gkaefer (2011-03-09 01:30:42)

Offline

 

#3 2011-03-09 11:09:53

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: How to control mouse drag direction

gkaefer wrote:

Hi Mike,

did try it - and I could not add it to any of the ..../themes/xxx.xml (xxx for e.g. 2D.xml) files.
no error occured after reloading PTP and after assinging the added theme and export. could not find the code block in final pano tour files.

so I did manually adding the code to the xxx.xml file (xxx for chosen project name) I added the sourcecode between final
</action>
-> here
</krpano>

this method did work, but whenever PTP project gets updated and reexported the made manual changes are lost...

Georg

Hi Georg

I ended up trying something similar, with the same result. I've been using the e-card plugin too and this is similar, do most of the work in PTP then have to do some final coding in the XML.

I will persevere and keep you updated. Maybe using a droplet would allow commonly used code changes to be easily added into the xml files.

Thanks for your reply.

Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#4 2011-03-09 11:50:06

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

Re: How to control mouse drag direction

MikeMcFarlane wrote:

Hi
I find the default direction that the mouse drags the pano to be quite un-intuitive. I've visited other panos where the mouse drag works in the opposite direction.
I can't see any way to change it in Panotour. Have I missed something?
Looking through the krpano documentation, the relevant code appears to be:
<control mousetype="drag2D" />
If this is right, where in the themes xml should I put this code?
Many thanks
Mike

Hey Mike, Georg!

AFIK you can change the cursor and it´s behavior using the full navigation bar. But i might be wrong - i never an an interest to change it.
Go to the PRPano site and look for "Interface Examples" and the "Option" box you can have on the screen while building a pano and blend it away after having finished it.

see here:


Uploaded Images

Last edited by klausesser (2011-03-09 11:51:14)


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

Offline

 

#5 2011-03-09 12:32:25

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: How to control mouse drag direction

klausesser wrote:

Hey Mike, Georg!

AFIK you can change the cursor and it´s behavior using the full navigation bar. But i might be wrong - i never an an interest to change it.
Go to the PRPano site and look for "Interface Examples" and the "Option" box you can have on the screen while building a pano and blend it away after having finished it.

see here:

Hi Klaus

Thank you, will have a look at that. I'm just starting to have a play with the krpano plugins. The editor plugin also looks very good for changing xml on the fly.

Kind regards

Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#6 2011-03-09 12:39:51

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: How to control mouse drag direction

gkaefer wrote:

Hi Mike,

did try it - and I could not add it to any of the ..../themes/xxx.xml (xxx for e.g. 2D.xml) files.
no error occured after reloading PTP and after assinging the added theme and export. could not find the code block in final pano tour files.

so I did manually adding the code to the xxx.xml file (xxx for chosen project name) I added the sourcecode between final
</action>
-> here
</krpano>

this method did work, but whenever PTP project gets updated and reexported the made manual changes are lost...

Georg

Hi Georg

Having a look at the krpano documentation, esp

http://www.krpano.com/docu/xml/#include-notes

It looks like you could use an include file, so write an xml file that contains all your custom tweaks then all you need to do is add the include node to the PTP xml and all your custom stuff will be pulled in.

e.g

Code:

<include url="my_code.xml" />

It's still a manual edit, but maybe easier than cutting and pasting a lot of xml. It might even be possible to add the include node into the PTP theme xml.

Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#7 2011-03-09 15:18:03

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: How to control mouse drag direction

Hi

Using an include file works well.

Into the start of the PTP xml I add:

Code:

<krpano version="1.0.8.12">
    <!-- include standard code -->
    <include url="standard.xml"/>
        rest of the code ...........

Then in the tour directory I create a folder called 'standard' where I can copy any standard elements like cursors.
In the tour directory I can copy in my standard include file, called 'standard.xml' which looks like:

Code:

<!-- Mike's standard include file 09-03-11 -->

<!-- logkey="true" sets the error console to be available -->
<krpano version="1.0.8.12" logkey="true">

    <control
            mousetype="moveto"
            mouseaccelerate="0.9"
            mousespeed="2"
            mousefriction="0.5"
    />
    
    <cursors url="standard/qtvr-cursors_gray.png"
             type="8way"
             move="0|0|16|16"
            drag="16|0|16|16"
            arrow_u="32|0|16|16"
            arrow_d="48|0|16|16"
            arrow_l="64|0|16|16"
            arrow_r="80|0|16|16"
            arrow_lu="96|0|16|16"
            arrow_ru="112|0|16|16"
            arrow_rd="128|0|16|16"
            arrow_ld="144|0|16|16"
             />
</krpano>

I'll add in other elements as I find out about them.

Easy:-)

Kind regards

Mike


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

#8 2011-03-09 15:30:31

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

Re: How to control mouse drag direction

MikeMcFarlane wrote:

Hi

Using an include file works well.

Into the start of the PTP xml I add:

Code:

<krpano version="1.0.8.12">
    <!-- include standard code -->
    <include url="standard.xml"/>
        rest of the code ...........

Then in the tour directory I create a folder called 'standard' where I can copy any standard elements like cursors.
...............

Easy:-)

Kind regards

Mike

Neat...do the elements you add like this remain in effect for the entire tour?

This could open up a away to cope with specification of custom XML from within the PTP GUI and for custom XML to be retained on/after repeated exports of the tour.


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.

Offline

 

#9 2011-03-09 16:43:14

MikeMcFarlane
Member
From: Moscow, Russia
Registered: 2011-02-26
Posts: 55
Website

Re: How to control mouse drag direction

Hi Andrew

Yes, it appears to continue to work in multiple panos in a tour. I guess because the standard.xml code is parsed into the top level tour xml then it is carried across to all panos.

With this, and customised themes, it seems pretty possible to make a lot of polishing automated.

Maybe it is a feature that could be added to PTP - the option to include a standard.xml file?

Glad you like, nice to put something back for all the help I have received:-)

Kind regards

Mike

PS I edited the code slightly in my code above, seemingly xml comments need <!-- and --> on all lines, I think. The above code should be ok now for whatever the reason.

Last edited by MikeMcFarlane (2011-03-09 16:46:10)


Bio: Generation fluxer - farmer, mechatronics engineer, project manager, climbing shop manager, landscape photographer, programmer, virtual panographer, cyclist, life lover.
Twitter: MikeJMcFarlane
email: moo@moosooboo.com
www: www.moosooboo.com

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson