Closed amunology closed 10 years ago
orientation updates including _lookAzimuth and _lookAltitude get requested inside the draw function, is the screen being re-drawn? i wonder if motion manager is being setup properly. what device are you running it on? can you put logs in some functions for me?: make sure -(void)updateLook is being called. as well as seeing if (GLKMatrix4)getDeviceOrientationMatrix is entering the if statement: if([motionManager isDeviceMotionActive]), and check just incase CMRotationMatrix a is being filled with all zeros.
The screen is being re-drawn, and the panoramic functions work perfectly (both manual and accelerometer-based). Basically, if I didn't need to read the position values, I would not have any issues.
The only change I did was to uncomment some code for manual finger panning. Without doing so, manual panning would not work (although I have set setOrientToDevice to No.
Thank you so much for your quick response, by the way. I appreciate it.
Update: I changed setOrientToDevice back to YES. When I did that, I got proper values for _lookAzimuth and _lookAltitude.
I suppose you commented the manual panning code due to certain issues? I also noticed that buildOrientationMatrixAz does not exist, and so I had to leave that out (which is why I'm getting 0s).
I think I have found the problem.
I would like to hear your thoughts on a possible solution.
Thank you very much! :)
oh yes! that's it exactly. i just added hotspots and reworked the whole touch interface and that broke the pan gesture, so yes everything associated with it is not guaranteed to work. i'm sorry you had to figure that out the hard way. i'll reprioritize this and get it working soon- hopefully with a more elegant pan-gesture-rotation matrix instead of storing az-alt rotation. thanks for being patient!
No worries at all, thanks a lot for the prompt responses!
It's an elegant piece of work, I think :) I'll be on the lookout for future updates. Thank you. All the best! Have a good day.
Hello! Thank you for the wonderful work that you've done here.
For some reason, I'm unable to read any of the position values in your demo. For example, Azimuth and Altitude are always showing me 0, as are all the other vector and matrix values in there.
I assume I am doing something wrong. I have not actually modified the demo - I have only attempted to read the values.
Can you please elaborate for a moment on the proper method of doing this? Thank you.