Skip to content

Conversation

elalish
Copy link
Contributor

@elalish elalish commented Dec 28, 2021

Fixes #3000
Fixes #3025
Fixes #3067

The problems with textures randomly going black on iOS was tracked down to Webkit having some kind of memory leak in their ImageBitmap implementation. The workaround was to disable this on iOS, so their performance will be slightly worse, but at least functional again.

This also adds support for the glTF sheen extension, since I added IBL support for that upstream in three.js. Note khronos-ToyCar for example.

Note this PR also lightens all the renders, bringing them closer in line with the other glTF renderers, which you can see here once this is merged: https://modelviewer.dev/fidelity/ I believe this is from switching from gamma encoding to sRGB, which probably should have happened a long time ago. If you don't like the change, you should be able to get similar results to before by using an exposure of slightly less than 1.0.

@elalish elalish self-assigned this Dec 28, 2021
@elalish
Copy link
Contributor Author

elalish commented Dec 28, 2021

Looking good @mrdoob!

@elalish elalish merged commit 5f769a2 into master Dec 28, 2021
@elalish elalish deleted the r136 branch December 28, 2021 19:00
@v-prgmr
Copy link

v-prgmr commented Dec 31, 2021

@elalish does the 1.9.2 version of have this fix?

@v-prgmr
Copy link

v-prgmr commented Jan 4, 2022

UPDATE: I found the problem in my case which was the resolution of the textures. Thank you! I don't see black textures anymore.

@elalish The model still gets rendered without textures and appears black. However, using the threejs viewer from https://github.com/mrdoob/three.js/releases does not cause the same issue as with modelviewer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.glb model crashes the webpage on iOS Safari Random parts of models go black on iOS 15 iOS 15 wont load .glb in viewer
2 participants