-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black models on some devices #1060
Comments
@MikeFesta thanks for the report. Three.js is bundled with We'll look forward to the results from chrome://gpu I speculate that this could have some overlap with #1043, which shows a |
The report is quite long and was unformatted if pasted here, so I put it in this google doc:https://docs.google.com/document/d/1kygiUoIHqOd2t8szf6i2D7z-IPXl39vGg4-HtQ3HwLY/edit?usp=sharing |
@MikeFesta if you just click the "copy to clipboard" button, it will produce an abridged report that is easy to paste here. Here is mine, for example:
|
Getting the same issue with some .glb files looking completely black (example .glb file here). Preview Tests Texture is not shown in model-viewer even though it is shown when previewing it on tools like https://gltf-viewer.donmccurdy.com/ or https://sandbox.babylonjs.com/. Previewing it with Three.js (https://threejs.org/editor/) also looks black. But can be fixed by adding a DirectionalLight to the scene (on the top menu bar: Add -> DirectionalLight) File Origin I encountered this issue when using Windows Paint 3D, importing a 3D file from their 3D library, and saving it as .glb. These .glb files look completely black with model-viewer. chrome://gpu Output
Please help! |
Any time the model is black until a directional light is added, we have found it is nearly always because the AO texture channel is completely black. Apparently some exporters do this by default, but it is an error. |
Hi there. Any chance to find a out of the box way to fix black models on android? Everything I look from model-viewer on my Samsung j5 using chrome v85 is black, except for the aquarium scene from the related issue. |
@ymongo When you say everything, do you mean the pages at modelviewer.dev are all black models as well? Can you please provide links to at least one page that is black and one that is not so I can try to understand what's happening? |
Hi elalish, Thanks for your answer. modelviewer.dev astronaut model is black on my phone, as well as some three.js models from tutorials, but the webgl aquarium page is fine. Some screenshots here: https://photos.app.goo.gl/njATBJF4iRNE7TWm9 edit: van customizer now renders black as well, i'm sure i tried it with success on mobile not far ago |
@ymongo Can you please be more specific and add links for each of the pages you reference? I don't know where the "aquarium page" is, nor which tutorials you're referring to, nor what the "van customizer" is. Also, your screenshots link is an empty album. |
Sorry it seems I missclicked and deleted the screenshots, now restored. renders black model on Android: renders properly: |
@ymongo It sounds like you have probably found a GPU driver issue with three.js, so you might try filing an issue on their Github. The only one of those sites that even uses model-viewer is your first link, and given the other trouble you have, it seems to be problem that's below our codebase. |
Description
We recently deployed model-viewer for a client and have been getting some reports of black models. The client was able to show me the issue over video chat and provided OS (Windows 10 Home 1903) + browser (Chrome 80) info. They were using a laptop, but I don't know the make and model. I had them go to modelviewer.dev and I saw that astronaut was black as well.
I've been trying to reproduce the issue so that I can get more details, but I haven't been able to yet. Posting here in the hopes that others are having the same problem. Other issues, such as #679, look to be similar, but were last updated almost 6 months ago.
The only time that I've seen black models was in development when the hdr environment image path was wrong. Based on that, I guessed that perhaps the image wasn't getting downloaded fast enough, so as an attempted workaround I added this js code to try to get the browser to re-download and reset it, but it doesn't seem to help.
Note: I've also had reports of black textures on an "older LG phone" and reports that our homepage, https://www.3xr.com (with 3 models) causes an Awh Snap crash in chrome on an underpowered mini conference room PC.
Live Demo
The client's website where this is live currently (2/28/2020) is running an A/B test, so the 3D model link doesn't always appear. Here's the link: https://helixsleep.com/products/midnight-luxe?variant=queen
The page that actually contains the model viewer is in an iframe, here:
https://www.3xr.com/asset/view/w4cc76styjyf/web
Here is another demo page here with more models. It has the same code that the client is using to open the iframe in a modal: https://www.3xr.com/demo/helix
Note: this works on most devices, and I haven't been able to see black models on the machines that I've tested, including a VM with the same Windows + Chrome versions as reported.
Screenshot:
Browser Affected
OS
I've asked the client to send me the output of chrome://gpu and will add it as a comment when I have it.
Versions
This also happens on modelviewer.dev with the astronaut.
The text was updated successfully, but these errors were encountered: