Closed sprengerst closed 1 month ago
Wow, that's crazy! I can repro, and weirder yet, it does not repro in the three.js editor, which should be using the same shaders. It sort of looks like z-fighting - you don't have coplanar triangles or anything weird like that, right?
Is this a regression? Was there ever a time when this model worked properly in our editor?
Hi, yes, this model worked before. There is nothing special to it, as you said it works (worked) with ThreeJS & ModelViewer, only a complaint gave us hints that something is wrong. Thanks for having a look. @elalish
I thought someone is crazy, after reading the first report :D
Would you mind checking different MV versions to let us know where the regression started? Just change the version string in https://ajax.googleapis.com/ajax/libs/model-viewer/3.5.0/model-viewer.min.js
Hi @elalish I'm sorry we are using it "self built", it's not so easy to downgrade here. We have another GLB where the issue occurs now.
https://drive.google.com/file/d/1qJrURF1M7nGDtAfdV-lZEXd7LP6uKcY9/view?usp=sharing
@elalish do you already now what is the problem here?
No, I haven't gotten a chance to look at this yet, and right now I'm prepping for a SIGGRAPH talk. You'll see when there's a PR. However, if you'd like to dig in and show what you find, that's always appreciated!
No, I haven't gotten a chance to look at this yet, and right now I'm prepping for a SIGGRAPH talk. You'll see when there's a PR. However, if you'd like to dig in and show what you find, that's always appreciated!
I have the same issue here, and the only thing I found is that the glitch seems to appear when using at least one alpha blend material with the double sided turned on
Hi @elalish, I don't really understand what's the problem, could it be some low level WebGL stuff. Maybe a simple ThreeJS Update could resolve this problem?
Possibly - thanks for the ping, I'll take another look.
Lucky us, you were right!
Perfect :) Thanks for the update.
Some models stopped working if they are turned, it seems that the rendering engines has troubles showing the GLB. They disappear after some movements.
https://github.com/google/model-viewer/assets/6854862/d00b0e1d-056a-4d79-955f-69de4f66c6eb
Live Demo
https://modelviewer.dev/editor/
Version
Browser Affected
OS