mesh.updateFacetData() breaks smooth shading after glTF / GLB export (faceted look on rounded meshes)

Hi Babylon.js team,

I’m running into an issue related to mesh.updateFacetData() and glTF/GLB export.

Problem:
After calling mesh.updateFacetData(), exporting the scene to GLB causes all rounded / smooth objects to become visibly faceted.
The original smooth shading is lost and the geometry looks flat-shaded per facet.

This does not happen if updateFacetData() is not called.

https://playground.babylonjs.com/?inspectorv2=true#LOYVQI

Please help. How to solve this?

Welcome aboard!

This PR will fix the problem:

Thanks Evgeni.

I’ll check it out!

Verified! Works for me!
Thank you, once again.

1 Like