Skip to content

DoubleSided materials render incorrectly in some Android devices after 0.6.0 #740

Closed

Description

@mrdoob

Description

On some Android devices smooth surfaces appear to be way too shinny after 0.6.0

Devices tested/affected: Galaxy Note 4, Galaxy S8, Pixel 3, Pixel 3a and Nexus 6p.

Screenshot_20190905-075818

Live Demo

http://model-viewer-tester.glitch.me/

Browser Affected

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

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

Versions

  • model-viewer: v0.6.0

Activity

  1. changed the title [-]Non-rough surfaces are too shinny in some devices after 0.6.0[/-] [+]Smooth surfaces are too shinny in some devices after 0.6.0[/+] on Sep 5, 2019
  2. elalish commented on Sep 6, 2019

    @elalish
    Contributor

    This is very strange. First, the problem only appears with the last of four meshes in the file. The color is gone because the diffuse light is down to nearly zero anywhere that is facing a light source (but only on Android). The glb you exported has lost most of the texture detail, so I'm working from the original glTF, but it exhibits the same behavior. I thought at first it might be a gl precision issue, but that's had no effect.

  3. mrdoob commented on Sep 6, 2019

    @mrdoob
    CollaboratorAuthor

    First, the problem only appears with the last of four meshes in the file.

    😮

  4. mrdoob commented on Sep 6, 2019

    @mrdoob
    CollaboratorAuthor

    Hmm, that was an interesting observation. It made me spectorjs it and, it seems to me that the problem is with the first drawcall.

    Screen Shot 2019-09-06 at 3 39 39 PM

  5. elalish commented on Sep 6, 2019

    @elalish
    Contributor

    Two questions: first, how do you spectorjs your phone? second, what error are you seeing?

  6. mrdoob commented on Sep 6, 2019

    @mrdoob
    CollaboratorAuthor

    Well, it just so happens that... from all the models available in http://model-viewer-tester.glitch.me/ this one is the first one that doesn't draw in a single drawcall.

  7. mrdoob commented on Sep 6, 2019

    @mrdoob
    CollaboratorAuthor

    Two questions: first, how do you spectorjs your phone? second, what error are you seeing?

    You can't spectorjs your phone. And I'm not seeing any error. I just noticed that the mesh that is being drawn first is the one that appears metallic in the phone.

    Welcome to the sad world of lack of WebGL debug tools 🙌

  8. elalish commented on Sep 6, 2019

    @elalish
    Contributor

    ah, that is interesting. Thanks.

  9. mrdoob commented on Sep 6, 2019

    @mrdoob
    CollaboratorAuthor

    I'm going to look for more glb models that have multiple parts.

  10. mrdoob commented on Sep 6, 2019

    @mrdoob
    CollaboratorAuthor

    I've added Lantern which has multiple parts and it renders fine on mobile... 😑

  11. added this to the v0.7.0 milestone on Sep 7, 2019
  12. changed the title [-]Smooth surfaces are too shinny in some devices after 0.6.0[/-] [+]DoubleSided materials render incorrectly in some Android devices after 0.6.0[/+] on Sep 8, 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