Giter VIP home page Giter VIP logo

Comments (7)

Platform-Group avatar Platform-Group commented on May 28, 2024 1

I forgot to mention, you can always put some logs into your gps-camera-update-position to see when it's firing and how accurate it is. Here's a function for measuring the distance in meters between two sets of coordinates, it may help you in debugging.

  function measure(lat1, lon1, lat2, lon2) {
    // generally used geo measurement function
    var R = 6378.137; // Radius of earth in KM
    var dLat = (lat2 * Math.PI) / 180 - (lat1 * Math.PI) / 180;
    var dLon = (lon2 * Math.PI) / 180 - (lon1 * Math.PI) / 180;
    var a =
      Math.sin(dLat / 2) * Math.sin(dLat / 2) +
      Math.cos((lat1 * Math.PI) / 180) *
        Math.cos((lat2 * Math.PI) / 180) *
        Math.sin(dLon / 2) *
        Math.sin(dLon / 2);
    var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
    var d = R * c;
    return d * 1000; // meters
  }

from ar.js.

nickw1 avatar nickw1 commented on May 28, 2024 1

I don't think this is anything to do with the Southern Hemisphere, but possibly inherent limitations in the sensors of specific devices and/or iOS-related bugs. Perhaps related to #547 #552 #590? We haven't yet identified a definite cause as the occurrence is rather random, which suggests it's a device-specific issue.

GPS only has a certain accuracy though, being able to "walk around" a model on GPS alone is unlikely to work as GPS isn't that accurate.

from ar.js.

Platform-Group avatar Platform-Group commented on May 28, 2024

0.0001 degrees to the north is about 11 meters, so not much, if I had to guess it's simply because your GPS isn't updating your position because you're not walking very far? The cameras position can only be updated as the GPS is updated, if your GPS is relatively inaccurate then it's not going to pick up changes of only 11m. I know my current AR.js project is in a skyscraper so GPS is practically useless thanks to the interference and I had to put in a system for changing simulated coordinates.

from ar.js.

mamoone avatar mamoone commented on May 28, 2024

any good news ?!

from ar.js.

vizsatiz avatar vizsatiz commented on May 28, 2024

0.0001 degrees to the north is about 11 meters, so not much, if I had to guess it's simply because your GPS isn't updating your position because you're not walking very far? The cameras position can only be updated as the GPS is updated, if your GPS is relatively inaccurate then it's not going to pick up changes of only 11m. I know my current AR.js project is in a skyscraper so GPS is practically useless thanks to the interference and I had to put in a system for changing simulated coordinates.

I really dont think this is the issue as I tried changing those values

from ar.js.

vizsatiz avatar vizsatiz commented on May 28, 2024

any good news ?!

All I could understand was there were some issues with Southern hemisphere, for more info #278

from ar.js.

marcusx2 avatar marcusx2 commented on May 28, 2024

It's normal, you can't walk around a model.

from ar.js.

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.