jmonkeyengine icon indicating copy to clipboard operation
jmonkeyengine copied to clipboard

jme3-plugins loads MorphPrimitivesTest incorrectly

Open stephengold opened this issue 2 years ago • 2 comments

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:

MorphPrimitivesTest

I believe the best approach to solve this issue will be:

  1. Add a MorphControl to every model with morph targets, even if there are no animation tracks.
  2. Initialize the morph state of each Geometry by invoking setMorphState() with the "weights" values in the glTF.

stephengold avatar Oct 14 '23 22:10 stephengold

Is this fixed by https://github.com/jMonkeyEngine/jmonkeyengine/pull/2109 ?

riccardobl avatar Oct 16 '23 12:10 riccardobl

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).

codex128 avatar Oct 16 '23 13:10 codex128