New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharp Edges Ignored #73

Open
SurlyBird opened this Issue Nov 8, 2018 · 1 comment

Comments

Projects
None yet
4 participants
@SurlyBird

SurlyBird commented Nov 8, 2018

Exporter ignores manually-assigned hard/sharp edges in Blender 2.8, resulting in an 'all-soft' mesh.

Repro in Blender 2.80 Experimental with glTF-Blender-IO:

  1. Create a cube
  2. Display>Shading>Smooth Edges
  3. In Edit mode, select all edges. Edge>Edge Data>Mark Sharp
  4. Select the Object Data tab, Turn on Auto Smooth and set the angle to 180.
  5. Edges of cube should appear hard/sharp in the viewport.
  6. With cube selected File>Export glTF 2.0 (glb). Make sure Export normals and Export Tangents are checked.
  7. Write file to disk.
  8. Load file in sandbox.babylonjs.com/
  9. Hard edges will not be preserved.

Contrast the same workflow with Blender 2.79 using glTF-Blender-Exporter: Hard edges are preserved in .glb written to disk.

Note: In 2.80, setting Display>Shading>Flat faces does export a .glb with hard edges, but all edges are hard. What we want is the ability to define custom hard/soft edges on any given mesh (like we can do in Blender 2.79 with the glTF-Blender-Exporter addon).

Example files attached.
cube_hard_soft.zip

@UX3D-nopper UX3D-nopper added this to the Community milestone Dec 2, 2018

@julienduroure

This comment has been minimized.

Collaborator

julienduroure commented Dec 3, 2018

Note that an issue has been opened in developer.blender.org regarding sharp edges management:
https://developer.blender.org/T58638

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