Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch the property "ar-placement" from "floor" to "wall" after entering the webXr mode #4159

Open
3 tasks done
klasaf opened this issue Mar 13, 2023 · 2 comments
Open
3 tasks done

Comments

@klasaf
Copy link

klasaf commented Mar 13, 2023

Description

Following the first example of the WebXR demo (https://modelviewer.dev/examples/augmentedreality/index.html), I can switch the src of the model while inside the WebXR view.
Now I'm trying to also update the ar-placement property for each object (from floor to wall, depending on the object), but I found out that after entering in the WebXr mode, the shadow updates correctly, but the ar placement in the room is not updated in the right way.
If I leave the webxr mode, and come back, it updades correctly but only on the first one (the one in the view), not the others.

Version

  • model-viewer: v3.0.2

Browser Affected

  • Chrome, version: 110.0.5481.154

OS

  • Android, version: 13

AR

  • WebXR
@elalish
Copy link
Collaborator

elalish commented Mar 15, 2023

Ah, good call, I don't think that was ever tested. Interesting in trying a PR to fix it?

@klasaf
Copy link
Author

klasaf commented Mar 24, 2023

Ah, good call, I don't think that was ever tested. Interesting in trying a PR to fix it?

Yes, I would like to. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants