GLB file not loaded correctly

Regarding the boot issue, this is still an issue with the asset. The reason why it only happens in Babylon is probably because we are the only loader that uses the skeleton property of the glTF which has been incorrectly set in the asset.

It turns out that I was wrong about the glTF Validation errors not causing the problems. The warnings are ignorable, but the first error is the exact source of the issue.

      {
        "code": "SKIN_SKELETON_INVALID",
        "message": "Skeleton node is not a common root.",
        "severity": 0,
        "pointer": "/skins/1/skeleton"
      },

The offending glTF JSON:

    {
      "joints": [
        56,
        57,
        58,
        59,
        60,
        61,
        62,
        63,
        64,
        65
      ],
      "inverseBindMatrices": 49,
      "skeleton": 56 // *** this node is not a common root of the nodes in the list above ***
    },

If this node is not a common root, the loader will load incorrectly for some cases. Changing this value to 1 or removing this property (such that the loader will auto-calculate the common root) fixes the issue.

2 Likes