Open stephengold opened 5 months ago
This appears to be a direct result of https://github.com/assimp/assimp/issues/5438 . A fix has been submitted: https://github.com/assimp/assimp/pull/5439 . I'll leave this issue open until a fix makes its way into a stable build of LWJGL---I estimate 6-to-12 months.
In the mean time, the best workaround is to disable RemoveRedundantMaterials post processing:
int ppFlags = Assimp.aiProcess_CalcTangentSpace
| Assimp.aiProcess_JoinIdenticalVertices
| Assimp.aiProcess_Triangulate
| Assimp.aiProcess_ValidateDataStructure
| Assimp.aiProcess_SortByPType;
LwjglAssetKey key = new LwjglAssetKey("Models/Zombiegirl/Running.gltf", ppFlags);
Spatial m = assetManager.loadModel(key);
On 1 February, Kim wrote and integrated his own solution (PR 5451) for the issue. 5451 introduced a new bug (issue 5461), for which I submitted PR 5467. 5467 has now been integrated into assimp's master branch.
Reported by @capdevon at the JME forum:
https://hub.jmonkeyengine.org/t/assimp-based-model-import-and-the-monkeywrench-library/46930/66
A copy of the stack trace: