Skip to content

Environment map generation fails on some devices #574

Closed

Description

@hybridherbst

Description

Model looks very different on different devices.

On an Android, Honor 7X, it looks like this:
signal-2019-05-28-141018

On iPhone XR:
IMG_5890

On Android, Xiaomi Mi 9:
Screenshot_2019-05-28-17-41-26-090_com android chrome

The last two are pretty similar but reflections still look different (not very visible in the screenshots).

Live Demo

https://bramble-geranium.glitch.me/

Browser Affected

  • Chrome
  • Edge
  • Firefox
  • Helios
  • IE
  • Safari

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

Devices where this is broken:

Honor 7X (BND-L21)
Android 8.0
Chrome 74.0.3729.157

Samsung Galaxy S6 (SM-G920F)
Android 7.0
Chrome 74.0.3729.157

Activity

  1. cdata commented on May 28, 2019

    @cdata
    Contributor

    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!

  2. changed the title [-]Vastly different appearance on different devices[/-] [+]Environment map generation fails on some devices[/+] on May 28, 2019
  3. cdata commented on May 28, 2019

    @cdata
    Contributor
  4. hybridherbst commented on May 28, 2019

    @hybridherbst
    ContributorAuthor

    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.)
    image

  5. hybridherbst commented on May 28, 2019

    @hybridherbst
    ContributorAuthor

    Found another device where default environment creation fails:
    Samsung Galaxy S6, SM-G920F, all available updates
    Android 7.0
    Chrome 74.0.3729.157

    Screenshot_20190529_004558

  6. cdata commented on May 28, 2019

    @cdata
    Contributor

    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-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.

  7. hybridherbst commented on May 29, 2019

    @hybridherbst
    ContributorAuthor

    @cdata I updated the original post with details about the Honor 7X + Galaxy S6.

  8. elalish commented on Jun 7, 2019

    @elalish
    Contributor

    @cdata If one of us can get a device for a repro, we should probably try to fix this as part of 0.5.

  9. cdata commented on Jun 8, 2019

    @cdata
    Contributor

    @elalish ack filed #616

  10. added this to the v0.6.0 milestone on Jun 24, 2019
  11. self-assigned this
    on Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions