Page 1 of 1

How to invert controls ?

PostPosted: Sun May 20, 2012 3:10 am
by Toni
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

PostPosted: Sun May 20, 2012 5:22 am
by mediavets
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?

PostPosted: Sun May 20, 2012 6:12 am
by Toni
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

PostPosted: Sun May 20, 2012 12:06 pm
by mediavets
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?

PostPosted: Tue May 22, 2012 3:22 pm
by Toni
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

PostPosted: Tue May 22, 2012 3:45 pm
by bdd
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

PostPosted: Wed May 23, 2012 4:32 am
by Toni
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

PostPosted: Wed May 23, 2012 8:33 am
by bdd
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

PostPosted: Wed May 23, 2012 4:37 pm
by Toni
Working perfectly now. Thank you very much ! :D

Toni

PostPosted: Fri May 25, 2012 12:27 am
by Toni
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

PostPosted: Fri May 25, 2012 7:18 am
by bdd
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>

PostPosted: Fri May 25, 2012 4:29 pm
by Toni
Perfect now ! Thanks a lot for fast reply and support.

PostPosted: Wed Mar 13, 2013 6:36 am
by Octavias
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

PostPosted: Wed Mar 13, 2013 6:43 am
by Octavias
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

PostPosted: Wed Mar 13, 2013 10:21 am
by mediavets
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