godotengine / FBX2glTF

A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.
Other
311 stars 73 forks source link

fbx2glTF produces model with EMPTY_ENTITY errors #44

Closed mramato closed 2 months ago

mramato commented 1 year ago

Godot version

v0.13.0-p1

System information

Windows 11 Pro, Intel(R) Core(TM) i7-10750H

Issue description

The attached model, Avocado.zip, produces two glTF validation errors when ran through fbx2gltf. Below is the

{
  "mimeType": "model/gltf-binary",
  "validatorVersion": "2.0.0-dev.3.9",
  "validatedAt": "2023-06-10T00:39:18.378Z",
  "issues": {
    "numErrors": 2,
    "numWarnings": 0,
    "numInfos": 0,
    "numHints": 0,
    "messages": [
      {
        "code": "EMPTY_ENTITY",
        "message": "Entity cannot be empty.",
        "severity": 0,
        "pointer": "/animations/0/channels"
      },
      {
        "code": "EMPTY_ENTITY",
        "message": "Entity cannot be empty.",
        "severity": 0,
        "pointer": "/animations/0/samplers"
      }
    ],
    "truncated": false
  },
  "info": {
    "version": "2.0",
    "generator": "FBX2glTF v0.13.0",
    "resources": [
      {
        "pointer": "/buffers/0",
        "mimeType": "application/gltf-buffer",
        "storage": "glb",
        "byteLength": 8673296
      },
      {
        "pointer": "/images/0",
        "mimeType": "image/png",
        "storage": "buffer-view",
        "image": {
          "width": 2048,
          "height": 2048,
          "format": "rgb",
          "primaries": "srgb",
          "transfer": "srgb",
          "bits": 8
        }
      },
      {
        "pointer": "/images/1",
        "mimeType": "image/png",
        "storage": "buffer-view",
        "image": {
          "width": 2048,
          "height": 2048,
          "format": "rgb",
          "primaries": "srgb",
          "transfer": "srgb",
          "bits": 8
        }
      }
    ],
    "animationCount": 1,
    "materialCount": 1,
    "hasMorphTargets": false,
    "hasSkins": false,
    "hasTextures": true,
    "hasDefaultScene": true,
    "drawCallCount": 1,
    "totalVertexCount": 406,
    "totalTriangleCount": 682,
    "maxUVs": 1,
    "maxInfluences": 0,
    "maxAttributes": 3
  }
}

Steps to reproduce

  1. Download Avocado.zip
  2. Run `fbx2gltf -i Avaocado.fbx -o out
  3. Validate the model with the gltf-validator

Minimal reproduction project

N/A

hu-xd commented 2 months ago

actually this sample fbx file still has a .tga problem but that's a seperate issue 😊