Material property IsTwoSided not work

Issue #50 closed
Renan Faccin created an issue

When I export a WPF 3D model to GLB format, and to open it later in a viewer like Babylon.JS/glTF Viewer some sides are hidden it when rotate camera. The Assimp library has a property for enable double side, IsTwoSided property, however, is not work when I set true value.

Code snippet:

Follows the evidence of the problem:

Original model

Model opened in Babylon.JS viewer

Would appreciate if you can help me.

Comments (7)

  1. Nicholas Woodfield repo owner

    Most likely the exporter is not honoring that material property. I’d also verify that the viewer you’re using honors the property, it’s importer may ignore it.

    Please file your defect on the native Assimp issue tracker:

    https://github.com/assimp/assimp

  2. Nicholas Woodfield repo owner

    I see this was reported on assimp's tracker. It looks like the problem is due to them using c++ bool rather than aiBool (4 bytes) in the gltf importer.

  3. Log in to comment