Replies: 2 comments 5 replies
-
We have some examples of how to do this: https://modelviewer.dev/examples/lighthouse.html |
Beta Was this translation helpful? Give feedback.
0 replies
-
I use almost the same code and it doesn't work for me (works in safari, but not in chrome like your example) Here is full code https://gist.github.com/wpsoul/fefe85f5b2cfb8d3493d24933dfa540f And here is in HTML https://gist.github.com/wpsoul/44fb4ccfab8cd5d428dcd732905cd008 Currently, it's not clear which condition model must have to enable AR. For me, it looks like a problem of priority or order. Here is link to page |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As model-viewer.js is extremelly big file, I need to delay loading and use something like
const modelViewerScript = document.createElement("script"); modelViewerScript.type = "module"; modelViewerScript.id = 'gsmodelviewerscript'; modelViewerScript.src = gs_model_params.pluginURL + "libs/modelviewer/model-viewer.min.js"; document.body.appendChild(modelViewerScript);
And everything is working great except AR. It's sometimes working in Safari but not in chrome. Is any way to refresh models after script is loaded?
Beta Was this translation helpful? Give feedback.
All reactions