Skip to content

Rendering inconsistencies with fine detailed normals + roughness  #587

Closed

Description

@pushmatrix

Description

I'm having an issue with the lighting on certain PBR models that have a lot of small details in the normal map. The way the details in the normal map are reflecting light seems to be off and the model comes across a bit too shiny and wet.

Below are images in various viewers. They use the same environment map from here: #521 (comment).

Model Viewer

Screen Shot 2019-06-10 at 3 34 52 PM

Screen Shot 2019-06-10 at 3 34 58 PM

Sketchfab

Screen Shot 2019-06-10 at 3 29 51 PM

Screen Shot 2019-06-10 at 3 29 55 PM

Substance

Screen Shot 2019-06-10 at 3 31 37 PM

AR Quick Look

(Doesn't use the same environment map)
arql

We created the material in substance painter, and Sketchfab & AR Quick Look render it as designed. Model-viewer makes it look like the normal map roughness is really low and reflective.

Live Demo

https://ninth-paste.glitch.me/

Download the model here

Browser Affected

  • Chrome (74.0.3729.157)
  • Firefox (66.0.5)
  • Safari (12.0.3)

OS

  • Android (not tested)
  • iOS (12.3.1)
  • MacOS (10.14.3)

Versions

  • model-viewer: v0.3.1 and latest master #f5b3b55
  • three.js: 105

Activity

  1. cdata commented on May 31, 2019

    @cdata
    Contributor

    Thanks for reporting this @pushmatrix ! We'll take a look

  2. added
    flag: partner
    type: bug
    on May 31, 2019
  3. added this to the v0.5.0 milestone on Jun 6, 2019
  4. pushmatrix commented on Jun 10, 2019

    @pushmatrix
    ContributorAuthor

    FYI: I updated the example given that shows the difference even more.

  5. elalish commented on Jun 10, 2019

    @elalish
    Contributor

    Okay, so looking at your metallic-roughness map, it looks like you're going for metal = 0 uniformly and roughness a bit noisy, between about 130-155? Inspecting threejs I'm seeing the metalnessMap and roughness map getting the same texture, and maybe some other issues. We might need to check out our gltf loader. I notice you have some indirection here, where scene.gltf encapsulates fabricball.glb; does this still repro if everything is baked into a single gltf?

  6. pushmatrix commented on Jun 10, 2019

    @pushmatrix
    ContributorAuthor

    Yep that's what we're going for. Same thing happens with it baked into one.
    Here's the gltf

    fabricball.gltf.zip

    Not sure how the indirection happened. It was originally a .glb from substance then I exported the .gltf + textures from Sketchfab after uploading it.

  7. pushmatrix commented on Jun 10, 2019

    @pushmatrix
    ContributorAuthor

    But yes you're right it does look like it has metalness applied to it.

  8. pushmatrix commented on Jun 10, 2019

    @pushmatrix
    ContributorAuthor

    Playing around with setting the metalness map in Sketchfab to be the same as the roughness, and the model didn't look the same as model viewer:

    Screen Shot 2019-06-10 at 5 42 08 PM

    However setting the roughness multiplier to 0.5 and then it looked pretty similar to model-viewer:
    Screen Shot 2019-06-10 at 5 38 28 PM

  9. elalish commented on Jun 11, 2019

    @elalish
    Contributor

    I take it back; metalness looks fine. I'm now investigating what I think is a difference between roughness and roughness squared.

  10. pushmatrix commented on Jun 12, 2019

    @pushmatrix
    ContributorAuthor

    Filament does seem a bit less shiny:

    Screen Shot 2019-06-12 at 11 43 49 AM

  11. pushmatrix commented on Jul 23, 2019

    @pushmatrix
    ContributorAuthor

    @elalish Is the rendering issue here solved by #591 or did #591 just make it so PMREM is on by default? When this issue was first posted I had mistakenly not turned on PMREM, but then updated the issue to show the fabric ball being way too shiny even with PMREM on.

    Does #591 make it less shiny?

  12. elalish commented on Jul 23, 2019

    @elalish
    Contributor
  13. pushmatrix commented on Jul 23, 2019

    @pushmatrix
    ContributorAuthor

    Is it ok if we reopen this issue then?

  14. reopened this on Jul 23, 2019
  15. cdata commented on Jul 23, 2019

    @cdata
    Contributor

    Sorry about letting this get caught in the issue-closing crossfire @pushmatrix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arc: compatibilityarc: rendering & effectsflag: partnertype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions