How do I export a gltf from Blender with the edges marked sharp?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Unityfugee


I want to export a model under the gltf/glb format from Blender to Godot. Here is what it looks like in Blender:

enter image description here

Here you can see the edges around the underside and wheel arches that have been marked sharp:

enter image description here

And here is what it looks like in Godot:

enter image description here

Note how the shading around the arches doesn’t work as it should and all the edges are uniformly shaded smooth. My question is simply : how do I make the edge shading data transfer from Blender to Godot using the gltf/glb format?

Thank you.

Perhaps you should try Godot’s GTLF Blender exporter addon. I don’t know if it would fix the issue, but it was made by the Godot devs because they were unhappy with Blender’s default exporter for various reasons, so it might be worth a shot! See:
GitHub - godotengine/godot-blender-exporter: Addon for Blender to directly export to a Godot Scene

Yuminous | 2021-08-13 11:30

:bust_in_silhouette: Reply From: Unityfugee

To anyone reading this, I found a solution : you must tick “tangents” in Blender’s geometry export options for gltf.
enter image description here