jmonkeyengine
jmonkeyengine copied to clipboard
jme3-plugins loads MorphPrimitivesTest incorrectly
I noticed a defect in GltfLoader while developing the MonkeyWrench library.
The test data is MorphPrimitivesTest from Khronos's glTF sample models.
Here's how it looks in CompareLoaders when "MorphPrimitivesTest/glTF/MorphPrimitivesTest.gltf" is loaded using jme3-plugins:
I believe the best approach to solve this issue will be:
- Add a
MorphControlto every model with morph targets, even if there are no animation tracks. - Initialize the morph state of each
Geometryby invokingsetMorphState()with the "weights" values in the glTF.
Is this fixed by https://github.com/jMonkeyEngine/jmonkeyengine/pull/2109 ?
No, I've already tried MorphPrimitivesTest with #2109 and it still fails. I suspect this is because the gltf file does not explicitly define animations (unlike the MorphStressTest gltf).