Giter VIP home page Giter VIP logo

Comments (5)

mayakraft avatar mayakraft commented on July 30, 2024

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.

amunology avatar amunology commented on July 30, 2024

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.

amunology avatar amunology commented on July 30, 2024

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.

mayakraft avatar mayakraft commented on July 30, 2024

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.

amunology avatar amunology commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.