How to invert controls ?  

Share your tips and tricks here or get help with any Panotour problem!
No bug reports (of any kind) in this forum!
no avatar
Toni
Member
 
Topic author
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 16, 2011 11:11 pm
Location: São Paulo, Brazil
Info

How to invert controls ?

by Toni » Sun May 20, 2012 3:10 am

Hello,

My client is going to use the virtual tour in a big 40" touch screen.
Not sure if they're going to use the iBook widget that I've already created or the web version.

They asked me to invert the controls of the virtual tour for this touch control version.
How can I do it in Autopano Pro ? Any way to change some codes in the XML ?

There is any way to test the iBook widget in Mac OS Leopard ?
I've tried to install the iBooks Author but it reports it only work in Lion.

Thanks a lot for your support.
Toni

no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Sun May 20, 2012 5:22 am

Toni wrote:Hello,

My client is going to use the virtual tour in a big 40" touch screen.
Not sure if they're going to use the iBook widget that I've already created or the web version.

They asked me to invert the controls of the virtual tour for this touch control version.
How can I do it in Autopano Pro ? Any way to change some codes in the XML ?

I don't understand what you mean by 'invert the controls'.

What is it that your client wants?

What computer and operating system will the client use with this 40-inch touch screen?
Last edited by mediavets on Sun May 20, 2012 5:24 am, edited 1 time in total.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
Toni
Member
 
Topic author
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 16, 2011 11:11 pm
Location: São Paulo, Brazil
Info

by Toni » Sun May 20, 2012 6:12 am

Hi Andrew, thanks for your reply.

They're probably using Windows 7 with the touch screen. The virtual tour is inside a multimedia presentation created in Director. When they asked to invert the controls, they mean, when sliding your finger in the touch screen from left to right, the view should turn to the left (pano spins clock-wise). Actually this works correct in the html5 ipad version, but I can't test the flash version in a touch screen to check if the controls are working as they desired.

Did you get it ? Thank you.

Toni
Last edited by Toni on Sun May 20, 2012 6:26 am, edited 1 time in total.

no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Sun May 20, 2012 12:06 pm

Toni wrote:Hi Andrew, thanks for your reply.

They're probably using Windows 7 with the touch screen. The virtual tour is inside a multimedia presentation created in Director. When they asked to invert the controls, they mean, when sliding your finger in the touch screen from left to right, the view should turn to the left (pano spins clock-wise). Actually this works correct in the html5 ipad version, but I can't test the flash version in a touch screen to check if the controls are working as they desired.

Did you get it ? Thank you.

Toni

I have a 3M Microtouch touchscreen monitor.

When you slide your finger from left to right the pano view pans to the right as you would expect - the same as if you used click+drag with a mouse.

I suspect this is what your client wants - anything else would be quite counter-intuitive.

..........

By the way what is the pixel resolution of that 40-inch touch screen?
Last edited by mediavets on Sun May 20, 2012 12:15 pm, edited 1 time in total.
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.

no avatar
Toni
Member
 
Topic author
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 16, 2011 11:11 pm
Location: São Paulo, Brazil
Info

by Toni » Tue May 22, 2012 3:22 pm

Hi Andrew, thanks for your feedback.

I've asked my client and the touch screen size varies from 32" to 40", they don't know the resolution but the virtual tour won't be displayed full screen but inside a frame in a layout. They've already tested it and resolution is fine. My pano is 8.000 x 4.000 pixels. The multimedia presentation is played in a Windows 7 OS.

When I said Autopano Pro, actually I meant Panotour Pro. The navigation they want is like the iPad version exported from Panotour but in flash.
And exactly like the navigation that is used in 360Cities or TourWrist when viewed in iPads.

Actually it's really necessary to invert the controls to make it intuitive. They're using the SWF version, single file.
When you click + drag the mouse pointer from left to right the pano pans to the right as expected.
But when you slide your finger from left to right in a touch screen the pano should pans to the left to make it intuitive.
But of course the system thinks I'm using a mouse and pans to the right.

It's the same feature called "invert controls" that have in Pano2VR.
Thanks for your attention.

Toni

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

by bdd » Tue May 22, 2012 3:45 pm

Hello,

What you need, is what is done in the following tour when clicking on the hand icon on the bottom right :
http://www.kolor.com/tutorials/TutorialTemplateTourBefore/index.html

With current version of Panotour Pro, if you want such feature, you have to code it in the built tour. Because the option is not in PTP.
If you are confident with krpano, or just with XML edition, you can create your own Panotour Pro template, with this feature.
The previous tour is the base tour of the following tutorial :
http://www.autopano.net/wiki-en/action/view/Creating_your_own_theme_templates

You can use it as a base to invert the control/navigation mode .


A future version of Panotour Pro will contain the possibility either to add a button in the tour to choose the control mode, or to set the control mode from Panotour Pro.

But in fact, in your case, it would be better if the generated code knew that the touchscreen is active or not.
We will see if the player is able to know it or not. If yes, then you would not have to do anything.

Gérald

no avatar
Toni
Member
 
Topic author
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 16, 2011 11:11 pm
Location: São Paulo, Brazil
Info

by Toni » Wed May 23, 2012 4:32 am

Thanks a lot Gérald for the links and support. That's exactly what I needed.
I've sucessfully applied a template and adjusted it to my needs. But I'm only inverting the controls using the change navigation button.

Can you please tell me what is the code inside the XML to activate the inverted controls when the tour is loaded.
I mean that I don't need the button to change navigation mode but I need to activate the inverted control as a default.

It's ok to use the invert control already when the tour is loaded because I'm saving 4 virtual tour versions to my client: web version (xml), flash embed version (swf) because xml version it's slow and stucked to edit inside director, ibook version, and a touch screen version with the inverted controls.

Thanks a lot for your help !!
Toni

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

by bdd » Wed May 23, 2012 8:33 am

If you want the invert to be the only available mode, then the code is quite short.
If you add the 2 following lines, it should work :

Code: Select all
<events name="setdrag2devent" onnewpano="setdrag2dmousetype"/>
<action name="setdrag2dmousetype">set(control.mousetype, drag2d);</action>

Gérald

no avatar
Toni
Member
 
Topic author
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 16, 2011 11:11 pm
Location: São Paulo, Brazil
Info

by Toni » Wed May 23, 2012 4:37 pm

Working perfectly now. Thank you very much ! :D

Toni

no avatar
Toni
Member
 
Topic author
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 16, 2011 11:11 pm
Location: São Paulo, Brazil
Info

by Toni » Fri May 25, 2012 12:27 am

Sorry, It did work, but just for the first opened pano.
When you change pano, the navigation mode changes.

There's any code to mantain the inverted control in all panos of the virtual tour ?
I've already tried to change or delete all mentions of "moveto" to "drag2d" but didn't worked.

Thanks a lot,
Toni

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

by bdd » Fri May 25, 2012 7:18 am

I forgot a keep="true" option in the previous 2 lines.
Here is the correct code :

Code: Select all
<events name="setdrag2devent" onnewpano="setdrag2dmousetype" keep="true"/>
<action name="setdrag2dmousetype">set(control.mousetype, drag2d);</action>

no avatar
Toni
Member
 
Topic author
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 16, 2011 11:11 pm
Location: São Paulo, Brazil
Info

by Toni » Fri May 25, 2012 4:29 pm

Perfect now ! Thanks a lot for fast reply and support.

User avatar
Octavias
Member
 
Posts: 139
Likes: 2 posts
Liked in: 1 post
Joined: Wed Dec 12, 2012 11:00 pm
Location: Brooklyn NY
Info

by Octavias » Wed Mar 13, 2013 6:36 am

Hey guys!

I am really interested in having the "Hand cursor" be the defualt when the tour launches. I tried to place that code into my main XML but nothing seems to work. Is there a certain place i need to place it into to or a different file.

Please advise!

Thanks for the help.

-Max
"The whole point of taking pictures is so that you don’t have to explain things with words."
http://www.acmbphotography.com/ - website
https://www.facebook.com/ACMBPhotography - facebook
https://www.facebook.com/MaxBolotovPhotography

User avatar
Octavias
Member
 
Posts: 139
Likes: 2 posts
Liked in: 1 post
Joined: Wed Dec 12, 2012 11:00 pm
Location: Brooklyn NY
Info

by Octavias » Wed Mar 13, 2013 6:43 am

never mind! I got ti to work! it launches with the original graphics but functions like the Hand!

Any way to change the image as well at the start?

-Max
"The whole point of taking pictures is so that you don’t have to explain things with words."
http://www.acmbphotography.com/ - website
https://www.facebook.com/ACMBPhotography - facebook
https://www.facebook.com/MaxBolotovPhotography

no avatar
mediavets
Moderator
 
Posts: 16415
Likes: 2 posts
Liked in: 130 posts
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.
Info

by mediavets » Wed Mar 13, 2013 10:21 am

Octavias wrote:never mind! I got ti to work! it launches with the original graphics but functions like the Hand!

Any way to change the image as well at the start?

-Max

Is this what you are looking for?:

http://krpano.com/docu/xml/#cursors
Andrew Stephens
Many different Nodal Ninja and Agnos pano heads. Merlin/Panogear mount with Papywizard on Nokia Internet tablets.
Nikon D5100 and D40, Sigma 8mm f3.5 FE, Nikon 10.5mm FE, 35mm, 50mm, 18-55mm, 70-210mm. Promote control.


Who is online

Users browsing this forum: No registered users and 2 guests