jeromeetienne / AR.js

Efficient Augmented Reality for the Web - 60fps on mobile!
MIT License
15.8k stars 2.22k forks source link

How to create a Markerless Augmented Reality that is visible in the entire territory of a city using AR.js? #833

Open Tedesqui opened 1 month ago

Tedesqui commented 1 month ago

Hello

I want to create a webpage that displays an augmented reality text when a person is in a certain city (the text needs to be displayed everywhere in the entire area of ​​the city). However, the city has tens of thousands of streets, and there is no way for me to manually write the Geographic Coordinates of each street, of each corner of the city... How can I solve this?

https://github.com/AR-js-org/AR.js?tab=readme-ov-file#location-based-example

nickw1 commented 2 days ago

Do you mean you want to show POIs throughout the city in AR?

If so, you will need to set up a server which allows clients to look up all POIs within a given latitude/longitude bounding box. The client app (AR.js) would then query the server and parse the data (e.g. JSON) returned, dynamically creating AR objects from the server response.

See for example:

https://github.com/nickw1/arjs-peakfinder

Also please note that this is an old repo, no longer being maintained: the current repo is https://github.com/AR-js-org/AR.js.