donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.15k stars 539 forks source link

White screen when viewing a model #351

Closed xx4lph4xx closed 11 months ago

xx4lph4xx commented 1 year ago

i wanted to view my low-poly model with animations and textures (standard resolution), but when i put it on the viewer i get this white screen. could you please tell me what's the problem? thank you

donmccurdy commented 1 year ago

Sorry, I'm not sure what you mean or what you're seeing.

Please share enough detail that I can reproduce the problem, ideally with the model. If you see any errors in the JS console, that's also helpful to know.

You may also want to run the model through a validator: https://github.khronos.org/glTF-Validator/

xx4lph4xx commented 1 year ago

image

xx4lph4xx commented 1 year ago

the model says it's valid, i've recently checked it using the validator, but on the viewer it goes to this white screen.

donmccurdy commented 1 year ago

Hm, it looks like the tab may have crashed. I haven't seen that result before. Do you see any particular warnings on these pages?

And, do other models work in this viewer for you? Does the original model work in any of these other viewers?

If you're able to share the model, that may help with investigating the issue.

xx4lph4xx commented 1 year ago

alright

I tried the links you gave me, and gltf.report had the same outcome - they load the model, show the meshes, and then suddenly the whole tab goes white again

for sandbox babylonjs and playcanvas, they work okay with minor issues (missing meshes)

where can i send the file by the way?

xx4lph4xx commented 1 year ago

i tested again on the viewer, clicked inspect and found these errors when i boot up, saying that the shaders are invalid. image

donmccurdy commented 1 year ago

Hm, that's a very large texture! I wouldn't be surprised if using one or more >16K textures would cause issues, though I don't know if that's directly the cause here.

You can either put the model on a file-sharing site like Google Drive and share a link here, or email me – my email address is on my website: https://www.donmccurdy.com/