Use ar only (load model but without displaying it on the browser) #4208
Unanswered
uprealdigital
asked this question in
Q&A
Replies: 2 comments 4 replies
-
I just realized why I can't go back to the AR mode. Fixing this right. Will let you know what I did, hopefully, that will do it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Since model-viewer is based on three.js, you'll probably have a much easier time using only model-viewer (less code to maintain, fewer copies of three.js for users to download). Is there any feature you're using in three.js that model-viewer does not expose? You can set the MV element to |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm using three.js for the viewer in the browser but I want to use the Modelviewer to view the model in AR.
How can I only use the AR feature of the model viewer without displaying/impacting the browser view?
Right now, if the model viewer property reveal is set to "manual". It only loads the model when I trigger:
modelViewer.dismissPoster();
But then it will show the model in the webpage.
So what I did was register to the "poster-dismissed" event and I trigger:
modelViewer.showPoster();
That's hides the model again which is what I want.
BUT, now I can't go back to the AR mode for some reason.
Am I making this too complicated for no reason? Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions