Add (managed) scene validation

Issue #30 new
Nicholas Woodfield repo owner created an issue

To avoid potentially mysterious errors when exporting a manually created managed scene either when the data is pushed to an unmanaged representation -or- sent to native Assimp, allow users to call a validate method on the scene object that does:

  1. Checks for incompleteness (e.g. missing nodes, materials)

  2. Checks scene indices (e.g. does a node reference a mesh that is out of range of the mesh list?)

  3. Checks mesh data indices (is there a face that references a vertex that is out of range to the vertex buffer?)

  4. Takes in an enum to determine the level of thoroughness in checking

  5. Outputs helpful error strings and/or enumeration that points to the specific error.

Native assimp does have scene validation, but converting to unmanaged memory seems overkill, also it won't detect managed-specific problems that would cause the conversion to fail.

This enhancement is up for grabs if anyone wants to contribute to the project.

Comments (0)

  1. Log in to comment