How to set up the pipping server to view model in AR like the editor? #4072
Replies: 3 comments 7 replies
-
This file has all our piping-server logic. It's pretty simple, you just need to set up both your pages to |
Beta Was this translation helpful? Give feedback.
-
Hey, I got it kind of working finally after a bunch of trial and error. Picking apart what you linked, as well as karanganesan's example. However, when I go to POST to the viewer page (for mobile), it won't load the model unless I either have the viewer page open first, or if I navigate to it after hitting the "View In Your Space" button, then refresh the view page, and then click on the "View In Your Space" button again. But this is also not an issue for a product that has no custom options (colors/size/etc..), it'll load no problem on the /view page. Would you know by chance how to make it to where once the user navigates to the page after scanning the QR code, it will then fetch the model that's been uploaded to the piping server? I get a status of 200 in the response when POSTing so not really sure where I am going wrong. Any help would be greatly appreciated! Here's the example that will load no problem (no custom attributes): And the one with custom options that will only be "fetched" if the view page it opened first: |
Beta Was this translation helpful? Give feedback.
-
Alright, I think I finally got it to work! But by all means please feel free to critique me/help me make this better. Basically in the configurator I wait for a "ping" or ok/200 response from the /view page, which only happens once the endpoint is opened. Once that is received, it will then trigger the exportScene() function, and pass that blob back through to the piping server, and the /view page will then fetch it and set it as it's src. configurator page:
/view page:
Again, open to any critiques/help on this. So far it's working good for what I need it for. I'll be tweaking the endpoint URL to be a little more unique to avoid any accidental overlaps though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if anyone could point me in the right direction, or explain a little on how to set up the pipping server to view the model in AR from scanning a QR code if starting from desktop? Just like how the editor uses it.
I've looked at some of the documentation on the pipping server's github, as well as the repository for the editor, to see how it's set up. But I got pretty confused.. Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions