Describe the bug
Related to Auto Smooth,
To Reproduce
Have a 3D mesh that takes advantage of Auto Smooth, then when exporting GLB, turn on Apply Modifier and see the Auto Smooth seems unchecked on all other mesh(s)! Surprised.
Expected behavior
Expecting Apply Modifier to have no effect whatsoever on the Auto Smooth of other objects in the scene.
Screenshots


.blend file/ .gltf
auto_smooth_bug_002.blend.zip
Version
Additional context
I found out about this while working on a project BLEND that requires both Apply Modifier, but I am losing a lot of "Auto Smooth" and lots of objects become ... edgy.
As GLB and as well as USDZ, below you can see:
With "Apply Modifier" turned on, somewhat it affects the Auto Smooth (OFF)

With "Apply Modifier" turned off, somewhat it affects the Auto Smooth (ON, as expected)

One more time, more obvious:


Related to #761? Did you test with that fix included?
Tested on alpha 2.82:
Blender:

glb with Apply modifier not checked:

glb with Apply modifier checked:

blend file after export (no changes):

So ... Not sure to understand what is exactly your problem.
can you please test again with blender 2.82 alpha? And display screenshots from blender before / glb on https://gltf-viewer.donmccurdy.com/ / blender after?
Thanks :)
So ... Not sure to understand what is exactly your problem.
I think the enabled Auto Smooth blender option should produce a gltf with a same normals as the blender renders and the viewport. There is no blender modifier involved, hence the "Apply Modifiers" option should be irrelevant.
Tested https://github.com/capnm/b8TransportRobot/tree/master/blender81
with the current gltf tip (1.1.16) + blender 2.81:



Tested with Blender 2.82.3 and 2.80.75
Normals are broken when exporting with apply Modifiers checked. See image below.
No additional modifiers on mesh.

This is not the same case, because you seems to have some custom normals, where the previous example was about using auto-smooth with split angle (without custom normals)
Can you please provide the .blend file?
(We should try reimporting it not in Blender too, to be sure that the bug is not in blender importer)
I agree with @capnm , currently the default setting for the GLTF exporter does not export a visually identical mesh as the blender viewport since it does not respect the 'autosmooth' setting. There is a workaround which is to add a custom split normal, which seems to bake the 'autosmooth' setting into the geo.
This appears to be fixed in master (by #1127 probably).

capnm's file is also fixed.
@scurest Thanks, perfect work!
I can confirm this is fixed in the current beta of b9 (v1.3.48).
Most helpful comment
@scurest Thanks, perfect work!
I can confirm this is fixed in the current beta of b9 (v1.3.48).