Coder Social home page Coder Social logo

azimuth problem about iphonearkit HOT 5 OPEN

zac avatar zac commented on August 17, 2024
azimuth problem

from iphonearkit.

Comments (5)

nielswh avatar nielswh commented on August 17, 2024

Check out this fork. I fixed this issue.
https://github.com/nielswh/iPhone-AR-Toolkit

from iphonearkit.

Tibolte avatar Tibolte commented on August 17, 2024

Hi!
I'm also working on this location-based augmented reality. Now, I've got the same problem. It works like a charm most of the time, but sometimes the markers on the screen jump suddenly to another position, or "run" as you say costamatrix. I'd like to keep them fixed on the screen. I looked at your fork nielswh, but I did'n't get how you did to fix this issue, could you explain it please?

from iphonearkit.

Tibolte avatar Tibolte commented on August 17, 2024

Get it! Figured out later by myself ;)

from iphonearkit.

hanneslarsson avatar hanneslarsson commented on August 17, 2024

please explain what you figured out Tibolte, I'm having the same problem

from iphonearkit.

Tibolte avatar Tibolte commented on August 17, 2024

Hi,

First I don't really know if my question was suiting this topic. My problem was that at a specific range of azimuth my annotations were suddenly disappearing (in landscape mode), strange... The thing is, when you rotate your device, you have to adjust your azimuth by substracting 90° for example (landscape right), here you get the range from Portrait [90;359] becoming [-269;-1], you have to add 360° to correct it, it looked like having a "ghost range".

Another thing is, I got a jumpy problem, at first I was thinking I asked too much performance to the device, but I forgot to use pointers, and the problem was solved. The critical point was when we update the locations, we should use a pointer to point at our current azimuth while we are calling the function to calculate the delta azimuth between our current location and the location being processed. Before I wasn't doing it, and now it is much smoother.

I don't really know if I answered your question, but I hope it will help some people who will perhaps find this topic!

from iphonearkit.

Related Issues (11)

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.