Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

gyroscope

Post requests for new features to this forum group. Any suggestion to expand the possibilities of Ventuz are welcome.

Moderator: Support

Post Reply
gabrielefx
Posts: 169
Joined: 16 Mar 2012, 19:01

gyroscope

Post by gabrielefx » 11 Jan 2014, 11:17

Hi,
I'm developing a 3d interface that will run on a tablet Surface.
The question is: how to handle the gyroscope of this device?
If I try to rotate the device the graphic hangs, I can lock it.
I would like to use a node that rearranges easily the Ventuz graphic in landscape or vertical position.

regards

Christian Krix Schmidt
Posts: 290
Joined: 18 Jan 2012, 11:36
Location: Dubai, United Arab Emirates
Contact:

Re: gyroscope

Post by Christian Krix Schmidt » 12 Jan 2014, 06:24

Use an axis node to rotate your content. Obviously because of the totally different aspect ratio you need to re-position your user interface elements. Animate this re-positioning and combine it with the axis rotation into one keyframe animation and you have your landscape/portrait-switcher.

gabrielefx
Posts: 169
Joined: 16 Mar 2012, 19:01

Re: gyroscope

Post by gabrielefx » 22 Jan 2014, 09:34

thank you,
but how connect Ventuz to the tablet's (Microsoft Surface 2) gyroscope?
How can I get the data of the orientation?

regards

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: gyroscope

Post by Karol » 22 Jan 2014, 10:22

Hi!

You would need to use the Script node and connect to the Windows API which provides Sensor information like orientation and acceleration etc.

Cheers
Karol

Christian Krix Schmidt
Posts: 290
Joined: 18 Jan 2012, 11:36
Location: Dubai, United Arab Emirates
Contact:

Re: gyroscope

Post by Christian Krix Schmidt » 22 Jan 2014, 12:20

I don't have a surface tablet but does the screen resolution swap as well when rotating 90 degress? Usually you have a resolution like 1920x1080 pixels. If you rotate the tablet 90 degrees does the resolution change to 1080x1920? What does the Viewport node output in both situations? If there is a difference you could use the change in its output values as a trigger for the transition.

Post Reply