Model loads completely black on Chrome and Firefox #2746
Unanswered
thebetterdraper
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Your link doesn't seem to be working. If you can update it, I'll take a look. Does the validator show any warnings? |
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
-
The .glb file I have loads completely fine in GLB Viewers online, but loading into model-viewer causes it to appear with (What I assume is) absolutely no ambient lighting. There have been similiar bugs mentioned in the discussions, but specific to Safari and endemic to something in their recent update.
This one is straight up refusing to load any lighting. But it's fine elsewhere:
I have attached screenshots here, and I will attach a link to the model here too.
Images of what it looks like in the model editor:
![image](https://user-images.githubusercontent.com/43851563/131575415-bc994038-2982-4820-8817-7b1942449866.png)
![image](https://user-images.githubusercontent.com/43851563/131575494-a4933876-c2f7-475d-a71b-9ecb323cde14.png)
Can someone help out here? I can't figure out why this would happen, especially given that every other model in glb as well as gltf format is loading just fine.
Pasting my snippet here, but it's pretty unchanged:
<model-viewer
ref={model}
id="helmetModelViewer"
camera-controls
alt="A 3D model of an Helmet"
// src={modelSrc}
src={LocalModel}
// auto-rotate
loading="eager"
camera-orbit = "110deg 85deg 105%"
max-camera-orbit = "200deg 85deg 155%"
min-camera-orbit = "40deg 85deg 155%"
disable-zoom
Beta Was this translation helpful? Give feedback.
All reactions