facebookincubator / glTFVariantMeld

An application that accepts files on the glTF format, interprets them as variants of an over-arching whole, and melds them together.
MIT License
51 stars 15 forks source link

Error: Melded asset has no equivalent to base mesh 0, primitive 0. #36

Open sercanov opened 2 years ago

sercanov commented 2 years ago

I've been trying to melt two glb's (Funny, they're actually gold in real life :) but having this error.

here are mesh arrays of models. they're identical

"meshes": [
    {
      "name": "Mesh_0",
      "primitives": [
        {
          "attributes": {
            "POSITION": 0,
            "NORMAL": 1,
            "TEXCOORD_0": 2
          },
          "indices": 3,
          "material": 0
        },
        {
          "attributes": {
            "POSITION": 4,
            "NORMAL": 5,
            "TEXCOORD_0": 6
          },
          "indices": 7,
          "material": 1
        }
      ]
    }
  ],
"meshes": [
    {
      "name": "Mesh_0",
      "primitives": [
        {
          "attributes": {
            "POSITION": 0,
            "NORMAL": 1,
            "TEXCOORD_0": 2
          },
          "indices": 3,
          "material": 0
        },
        {
          "attributes": {
            "POSITION": 4,
            "NORMAL": 5,
            "TEXCOORD_0": 6
          },
          "indices": 7,
          "material": 1
        }
      ]
    }
  ],

Could send the models in private if necessary

AndrewKieser commented 2 years ago

To my understanding there is something different about the two models. So when it tries to meld that section of the model it is only found in one of them.

Double check all your geometry is exactly mirrored.