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
Rendering inconsistencies with fine detailed normals + roughness #587
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
Sketchfab
Substance
AR Quick Look
(Doesn't use the same environment map)
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.
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?
@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.
Activity
cdata commentedon May 31, 2019
Thanks for reporting this @pushmatrix ! We'll take a look
pushmatrix commentedon Jun 10, 2019
FYI: I updated the example given that shows the difference even more.
elalish commentedon Jun 10, 2019
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?
pushmatrix commentedon Jun 10, 2019
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.
pushmatrix commentedon Jun 10, 2019
But yes you're right it does look like it has metalness applied to it.
pushmatrix commentedon Jun 10, 2019
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:
However setting the roughness multiplier to 0.5 and then it looked pretty similar to model-viewer:

elalish commentedon Jun 11, 2019
I take it back; metalness looks fine. I'm now investigating what I think is a difference between roughness and roughness squared.
pushmatrix commentedon Jun 12, 2019
Filament does seem a bit less shiny:
pushmatrix commentedon Jul 23, 2019
@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?
elalish commentedon Jul 23, 2019
pushmatrix commentedon Jul 23, 2019
Is it ok if we reopen this issue then?
cdata commentedon Jul 23, 2019
Sorry about letting this get caught in the issue-closing crossfire @pushmatrix