-
Hi all, Afraid I don't have much JS experience, but I'm trying to get a 3D carousel of images to display like the ones in this example. I copied the code into my page as well as the .glb and .png files and it didn't seem to work. Everything displays correctly but the slider buttons at the bottom don't actually change the file (i.e. switchSrc doesn't switch the src). Does anyone know why this may be? I can post my code but it's exactly the same as the 'WebXR Demo' linked. Thanks for any help. edit: the only changes I made to the code was changing the relative path to the files hosted on my site |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Have you checked the console log? I'd bet you just have the wrong file path or your CORS headers aren't set on the server. |
Beta Was this translation helpful? Give feedback.
-
I got it working. I had it on a page with a few other different model-viewer elements with different models, and it started working properly when I copied it over to a fresh page. Not sure what the issue was, but that's a fix in case anyone else has this problem. |
Beta Was this translation helpful? Give feedback.
I got it working. I had it on a page with a few other different model-viewer elements with different models, and it started working properly when I copied it over to a fresh page.
Not sure what the issue was, but that's a fix in case anyone else has this problem.