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
NPE while loading glTF model "Hover bike - The Rocket" #1612
Comments
The |
I found 2 places where spatials could be added:
Both methods are invoked, but the relevant conditions are never satisfied:
|
The NPE also occurs while loading the model in "v3.4" branch, so the issue isn't a recent regression. Downloaded the original model from Sketchfab in FBX format, imported it into Blender v2.93.3, exported it in GLB format, and was able to load the GLB file into JMonkeyEngine. This suggests a flaw in Sketchfab's (automated) conversion of the model. Downloaded v2.0.0-dev.3.5 of the Khronos validator from https://github.com/KhronosGroup/glTF-Validator/releases, ran it, and got the following report:
The evidence indicates an invalid "scene.gltf" file, so consider how best to diagnose the issue and/or avoid crashing. If we skip I'll submit a PR. |
To reproduce the issue;
assetManager.loadModel("scene.gltf");
to the example app of your choiceTypical stack trace:
No matter how corrupt the model is, the loader shouldn't throw an NPE!
Forum discussion at https://hub.jmonkeyengine.org/t/how-to-load-gltf-model-correctly/44946
For reasons I don't yet understand, the loader isn't finding anywhere to add the
SkinningControl
. The following workaround allows the model to load, but probably isn't the best solution:The text was updated successfully, but these errors were encountered: