Comments (5)
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.
from panorama.
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.
- I am running this on an iPad 2.
- updateLook is being called. Trying to output/view the value of _lookAzimuth or _lookAltitude in that function returns 0 (I know, it makes no sense to me either).
- GetDeviceOrientationMatrix is in fact entering that If-statement, and CMRotationMatrix a is being filled with all zeros, although I'm not sure whether that is the case, or it is only a part of the "zero" effect I've been getting when checking any of the values.
Thank you so much for your quick response, by the way. I appreciate it.
from panorama.
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! :)
from panorama.
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!
from panorama.
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.
from panorama.
Related Issues (20)
- Just detect touch Swift 3 HOT 1
- How do i get same woking of lockPanToHorizon with landscape mode in device HOT 3
- Set Image directly instead of name/path HOT 1
- adapting image orientation with device orientation HOT 2
- How can I set the current viewing direction to the center of the image? HOT 2
- How to Use the Panorama View for UIView? HOT 1
- Camera Features Support HOT 3
- setImage and setImageWithName not working when I try to set it from directory or bundle directory HOT 2
- Large Image not loading. HOT 2
- Tiny planet effect by zooming out HOT 1
- EXC_BAD_ACCESS on iOS 11 HOT 4
- how to set image size for scale 16:9 HOT 1
- Unable to build pod in swift project HOT 2
- Library for Android
- iOS black screen HOT 1
- Control Zooming
- Its not working on iOS
- Migrate to Swift and Metal?
- How to use pitch and yaw to place hotspots ?
- Port to Swift/Metal is available: dhoerl/Panorama
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panorama.