alanross / AlvaAR

World tracking for WebAR. A Javascript library for Augmented Reality to run SLAM in the browser.
GNU General Public License v3.0
349 stars 73 forks source link

How can I enable multiple users to see the same object in the same physical location at a later time? #13

Open westonweiyi opened 1 year ago

westonweiyi commented 1 year ago

Hello,

I am a newbie and I am sorry if this is the wrong place to ask this question. I want to use AlvaAR to create an indoor navigation application. Is there a way to allow others to see the same object in the same location at a later time, similar to ARCore's Cloud Anchors?

Thank you.

nicolocarpignoli commented 1 year ago

Hi, I'm not very familiar with this library but it's a SLAM Web AR library "only". So it renders what you want, according to "where" and when you set it. In poor words: you have to build the coordinating system by yourself.

You could create a server that sends some information with a REST API, and you can check, on the Web AR frontend, if the "ping" request has arrived. In that case, you can show the object at the same time for each user.

About "where" to show the object, it depends: if you want to show it on a relative position for the user, it should be simple. If you want to position it absolutely, I guess you will need a geolocation web based AR system, that is different from this library.

westonweiyi commented 1 year ago

Hi @nicolocarpignoli , Thanks for the answer. I think you are right, I need to establish a coordinate system and store it for sharing with others. I found that many companies have implemented this function by scanning indoor spaces and creating point cloud maps, but their fees are too expensive, so I think I have to stop.