Android Picture 360 panorama rotation

Source: Internet
Author: User

============ Problem Description ============


I found on the internet about Android Panorama rotation of the demo, tested can also use http://download.csdn.net/detail/a394268045/7251865, but I now want to join the gyroscope effect, is to take the mobile phone rotation (do not touch), the picture can follow the mobile phone, to achieve this need to have OpenGL Foundation, but that matrix I really see a headache, space imagination does not, I hope the great God can help solve the next.

============ Solution 1============


Landlord to take care of no

============ Solution 2============


This..... You have to wait for the big God to be free.

============ Solution 3============


Is it okay to take gyro data? Don't change the changes.
These two places are replaced by gyro computed values:
Mball.yangle + = DX * 0.3f;mball.xangle + = dy * 0.3f;

The gyro paper contains x, Y, Z, is very simple, only need to calculate the difference between the data two times can be
But here to pay attention to the frequency of sensor escalation, the lowest seems to be 200ms, for this scenario may be relatively high, the specific thresholds need to be tested and adjusted by yourself

============ Solution 4============


Reference 6 Floor a394268045 's reply:
Quote: Referring to the reply of the 5 floor wypc520:

Is it okay to take gyro data? Don't change the changes.
These two places are replaced by gyro computed values:
Mball.yangle + = DX * 0.3f;mball.xangle + = dy * 0.3f;

The gyro paper contains x, Y, Z, is very simple, only need to calculate the difference between the data two times can be
But here to pay attention to the frequency of sensor escalation, the lowest seems to be 200ms, for this scenario may be relatively high, the specific thresholds need to be tested and adjusted by yourself

Avatar get a so beautiful mm, I yy for a long time ...
Did you do it upstairs? Using Gyro to get a three-dimensional data, and I saw the iOS implementation of the effect code, Touch is transmitted x, Y data, but the gyroscope sensor is a matrix of data passed to OpenGL to paint.


Oh, this avatar has been for many years, do not yy is not a real person ...
Have not done so fine, is actually a transformation, mobile phone left/right tilt change is x,z value, relative to touch is x value, the same way the phone tilt change is the y,z value, relative to touch is the Y value, do not know that there is no analysis of the wrong AH

============ Solution 5============


Onlookers!
2d rotation also to add OpenGL? Although OpenGL can be done.

============ Solution 6============


Done a post-sharing under the share,,,

Android Picture 360 panorama rotation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.