ProjectExodus icon indicating copy to clipboard operation
ProjectExodus copied to clipboard

ExodusImport: Mesh path not found when vertexCount = 0

Open genemiller opened this issue 4 years ago • 3 comments

JsonLog: Error: Mesh path not found for id 83

    "name": "Paper_geo",
    "id": 83,
    "uniqueName": "Paper_geo",
    "path": "Assets/TB-Exports/TL06_4.fbx",
    "convexCollider": false,
    "triangleCollider": false,
    "materials": [ 1 ],
    "readable": false,
    "vertexCount": 0,
    "defaultSkeletonId": -1,
    "defaultBoneNames": [ ],
    "defaultMeshNodeName": "",
    "defaultMeshNodePath": "",
    "defaultMeshNodeMatrix": {
            "e00": 0, "e01": 0, "e02": 0, "e03": 0,
            "e10": 0, "e11": 0, "e12": 0, "e13": 0,
            "e20": 0, "e21": 0, "e22": 0, "e23": 0,
            "e30": 0, "e31": 0, "e32": 0, "e33": 0
    },
    "blendShapeCount": 0,
    "subMeshCount": 0,
    "subMeshes": [ ]

}

genemiller avatar Jan 26 '21 21:01 genemiller

(recording details for myself) Problem description: Meshes with no vertex data are not being imported on unreal side which makes the importer unable to find those meshes later which causes import to fail.

Offending file/function: ExodusImport/Private/JsonImporter/Mesh.cpp, JsonImporter::importMesh(...)... line 106

Current status: Currently safety check has been disabled.

TODO: Create temporary blank meshes (invalid index data may result a crash), possibility of merging this with MeshBuilder::generateBillboard.... Add a warning on unity side. Possibly add a separate list of "important" warnings on unreal side to be presented to the user later when import completes.

NegInfinity avatar Jan 27 '21 15:01 NegInfinity

@genemiller I've created a "plug" for now which should allow you to import the scene. I'm not sure why you'd want mesh data with no vertices, however. I'll be working on a better fix.

NegInfinity avatar Jan 27 '21 15:01 NegInfinity

Thanks! FYI: The meshes were produced in TiltBrush. It seems that a new mesh is generated whenever you select a new brush (like 'Paper'), even if the brush is not used.

genemiller avatar Jan 27 '21 16:01 genemiller