Ar.js: Use location based indoor

Created on 22 Oct 2019  路  3Comments  路  Source: jeromeetienne/AR.js

Actually using location based indoor works but only if GPS signal is good and even so, results is good only using one place for building.

This because GPS signal is not precise enough to rely on that. It's possible to be indoor and see AR content that is bound to the actual place the user is (the building) but adding more content per location is not reliable.

In order to do that, the idea is to use different kind of data instead of GPS, or combine more (GPS + Wifi, Wifi signals power, and so on).

I'm not an expert on this, maybe someone can propose something.
Keep in mind that data has to be acquired from smartphones, so ideally we can only rely on smartphone's common sensors, and not specific embedded hardware.

feature location based

Most helpful comment

Hi @nicolocarpignoli

Maybe GPS datas are enough. I'm currently trying to display several AR objects in a room, separated by few meters only. I've done some tests with the navigator.geolocation.getCurrentPosition function which returns really precise datas on my phone (iPhone 6s), it detect the coords after I moved of 1m.

I think a way to implement this, is to change (or adapt) the algorithm of computeDistanceMeters in gps-camera. Actually it use the great-circle distance algorithm, which is precise enough for most of the case. But for cases where distances between objects are small, I think we should use the Vincenty's inverse formulae (cf : https://www.movable-type.co.uk/scripts/latlong-vincenty.html ), which can be precise to the millimeter level. I'll try with my use case, and will let you know 馃槃

Anyway, thanks for your work on AR.js 馃憤

All 3 comments

Hi @nicolocarpignoli

Maybe GPS datas are enough. I'm currently trying to display several AR objects in a room, separated by few meters only. I've done some tests with the navigator.geolocation.getCurrentPosition function which returns really precise datas on my phone (iPhone 6s), it detect the coords after I moved of 1m.

I think a way to implement this, is to change (or adapt) the algorithm of computeDistanceMeters in gps-camera. Actually it use the great-circle distance algorithm, which is precise enough for most of the case. But for cases where distances between objects are small, I think we should use the Vincenty's inverse formulae (cf : https://www.movable-type.co.uk/scripts/latlong-vincenty.html ), which can be precise to the millimeter level. I'll try with my use case, and will let you know 馃槃

Anyway, thanks for your work on AR.js 馃憤

@an0rak-dev It will be a great enhancement to the library. Please let me know when you have some first test on this! thank you so much.

we can continue discussing this at new repo address: https://github.com/AR-js-org/AR.js/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Suresh3d picture Suresh3d  路  7Comments

nicolocarpignoli picture nicolocarpignoli  路  4Comments

ghost picture ghost  路  4Comments

usama-ghufran picture usama-ghufran  路  5Comments

quistuipater picture quistuipater  路  7Comments