You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Environment map generation fails on some devices #574
Thanks for reporting, @soraryu ! We are aware that our built-in environment map is generated incorrectly on some GPUs, but until now we didn't have a public test case for it (your first image on the Honor 7X). Previously, this issue had been reported on Samsung devices.
This issue is slightly different from the other problem you pointed out, which I think is related to #565 .
Anyway, this is definitely a bug. Thanks for reporting. Any technical details you can give us regarding the Honor 7X and the browsers you are using would be helpful!
Ah, I see, so it's the environment map that fails.
I made a proper glitch test page here, since I in the meantime actually added an environment-image to our website (because it looked nicer than the default one and I was suspecting something like this).
(Note that there's another "annoyance" - if the environment image isn't accessible for whatever reason, it also renders as black. I guess it should fall back to the default one and print something in the console instead.)
If it is helpful to you or anyone else encountering this issue, you can work around this problem by using your own environment lighting via the environment-image attribute. Also, check out #521 (comment) where you can download our reference IBL as an HDR image. You can use the .hdr files with <model-viewer> without modification, and they should have better x-device compatibility.
Activity
cdata commentedon May 28, 2019
Thanks for reporting, @soraryu ! We are aware that our built-in environment map is generated incorrectly on some GPUs, but until now we didn't have a public test case for it (your first image on the Honor 7X). Previously, this issue had been reported on Samsung devices.
This issue is slightly different from the other problem you pointed out, which I think is related to #565 .
Anyway, this is definitely a bug. Thanks for reporting. Any technical details you can give us regarding the Honor 7X and the browsers you are using would be helpful!
[-]Vastly different appearance on different devices[/-][+]Environment map generation fails on some devices[/+]cdata commentedon May 28, 2019
CC @elalish @mrdoob
hybridherbst commentedon May 28, 2019
Ah, I see, so it's the environment map that fails.
I made a proper glitch test page here, since I in the meantime actually added an environment-image to our website (because it looked nicer than the default one and I was suspecting something like this).
https://glitch.com/edit/#!/bramble-geranium
(Note that there's another "annoyance" - if the environment image isn't accessible for whatever reason, it also renders as black. I guess it should fall back to the default one and print something in the console instead.)

hybridherbst commentedon May 28, 2019
Found another device where default environment creation fails:
Samsung Galaxy S6, SM-G920F, all available updates
Android 7.0
Chrome 74.0.3729.157
cdata commentedon May 28, 2019
Awesome, thanks for the repro case @soraryu 🙌
If it is helpful to you or anyone else encountering this issue, you can work around this problem by using your own environment lighting via the
environment-imageattribute. Also, check out #521 (comment) where you can download our reference IBL as an HDR image. You can use the .hdr files with<model-viewer>without modification, and they should have better x-device compatibility.hybridherbst commentedon May 29, 2019
@cdata I updated the original post with details about the Honor 7X + Galaxy S6.
elalish commentedon Jun 7, 2019
@cdata If one of us can get a device for a repro, we should probably try to fix this as part of 0.5.
cdata commentedon Jun 8, 2019
@elalish ack filed #616