-
My model-viewer 3D previewer always has a white background for any 3D model I use. I tried using a skybox image of another solid color, setting background-color = transparent, --poster-color transparent, but it is still always white. Does anyone know how to fix this in the html/css? Maybe wrap it in a container and edit the container css instead of the model-viewer? Thank you!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You mention --poster-color transparent, but I don't see it in your example CSS. Have you tried Also, even if transparent, it'll still be white if nothing is behind it. Can you post a live link or Glitch or something so we can see your whole page in action? |
Beta Was this translation helpful? Give feedback.
-
The problem was an outdated api version. It was fixed by using <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> |
Beta Was this translation helpful? Give feedback.
The problem was an outdated api version. It was fixed by using <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>