============ 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