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
Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
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!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
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
Moderator: Support
-
- Posts: 290
- Joined: 18 Jan 2012, 11:36
- Location: Dubai, United Arab Emirates
- Contact:
Re: gyroscope
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.
-
- Posts: 169
- Joined: 16 Mar 2012, 19:01
Re: gyroscope
thank you,
but how connect Ventuz to the tablet's (Microsoft Surface 2) gyroscope?
How can I get the data of the orientation?
regards
but how connect Ventuz to the tablet's (Microsoft Surface 2) gyroscope?
How can I get the data of the orientation?
regards
Re: gyroscope
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
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
-
- Posts: 290
- Joined: 18 Jan 2012, 11:36
- Location: Dubai, United Arab Emirates
- Contact:
Re: gyroscope
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.