Hey folks,
Trying to export an animated skeleton from Maya to babylonjs using gltf.
When I tested exported gltf it didnt pass the validation check and print following error for every joint:
{
"code": "ACCESSOR_ANIMATION_INPUT_NON_INCREASING",
"message": "Animation input accessor element at index 2 is less than or equal to previous: 0.06666667014360428 <= 0.06666667014360428.",
"severity": 0,
"pointer": "/animations/1/samplers/207/input"
},
When I exported using maya 2018 two years ago didnt encounter these errors. Now I am using maya 2020 to export with a different generator version:
New export (the errored one):
"info": {
"version": "2.0",
"generator": "babylon.js glTF exporter for Autodesk Maya 2020.4 v20211115.1",
"resources": [
{
"pointer": "/buffers/0",
"mimeType": "application/gltf-buffer",
"storage": "external",
"uri": "stand_idle_close.bin",
"byteLength": 130680
}
],
"animationCount": 2,
"materialCount": 0,
"hasMorphTargets": false,
"hasSkins": false,
"hasTextures": false,
"hasDefaultScene": true,
"drawCallCount": 0,
"totalVertexCount": 0,
"totalTriangleCount": 0,
"maxUVs": 0,
"maxInfluences": 0,
"maxAttributes": 0
}
Old export (the one passed the validator):
"info": {
"version": "2.0",
"generator": "babylon.js glTF exporter for Maya 2018 v20200721.1",
"resources": [
{
"pointer": "/buffers/0",
"mimeType": "application/gltf-buffer",
"storage": "external",
"uri": "stand_idle_close.bin",
"byteLength": 57024
}
],
"animationCount": 2,
"materialCount": 0,
"hasMorphTargets": false,
"hasSkins": false,
"hasTextures": false,
"hasDefaultScene": true,
"drawCallCount": 0,
"totalVertexCount": 0,
"totalTriangleCount": 0,
"maxUVs": 0,
"maxInfluences": 0,
"maxAttributes": 0
}
Other info:
Using same validator for both old and new gltf:
"validatorVersion": "2.0.0-dev.3.5"
Tried to search for solution on KhronosGroup github pages but didnt got anything help.
Also when load the errored gltf in engine it shows as this:
And the animation could not be able to load properly.
Does anyone have any clue about this error?
Many thanks,
Tawibox