webxr-samples icon indicating copy to clipboard operation
webxr-samples copied to clipboard

hit-test sample used as indoor navigation

Open micfio opened this issue 3 months ago • 5 comments

Hello, there is a project on github that use augmented reality for indoor navigation:

https://github.com/Gebort/FESTU.Navigator/tree/master

Is possible to use a modified version of hit-test sample in order to define a path (non necessary long) to a emergency exit and save the scene that will be retrieve pointing a qr-code for illustrate the path to an user. If yes can someone provide me sample code ?

micfio avatar Mar 21 '24 17:03 micfio

You could save a path and access it later using persistent anchors but you cannot share anchors yet, so you couldn't define a path and have another user view it from another device.

AdaRoseCannon avatar Mar 21 '24 17:03 AdaRoseCannon

Also if i get realworld place position and maybe save it in a json file ?

micfio avatar Mar 21 '24 17:03 micfio

from a-frame: t requires a browser supporting the WebXR Anchors module.

Fix any entity to a position and rotation in the real world. Apply the anchored component to an entity and call the method el.components.createAnchor(position, quaternion) to anchor it to a position and rotation corresponding to real world coordinates. If creatorAnchor is not called the entity is anchored to its initial position and rotation. The anchoring only applies when in immersive mode. Is possible to access this method and save position,quaternion ?

micfio avatar Mar 21 '24 17:03 micfio

The position and rotation will be relative to the space of your current session when a new session is started those coordinates will no longer correspond to the same location.

AdaRoseCannon avatar Mar 21 '24 17:03 AdaRoseCannon

I have found this: https://github.com/MozillaReality/webxr-geospatial for create geospatial anchor aligment is also impossible with the aligment of the anchor to Geo And Orientation position ? Will be implemented in near future the possibility to share anchor across device ? Thank in advanced and sorry for the time.

micfio avatar Mar 21 '24 21:03 micfio