Skip to content

Fail on import of 2.1 (3.0) mesh #187

@cryham

Description

@cryham

System Information

  • Ogre Version: 3.0, master
  • Operating System / Platform: Debian 12
  • Blender Version: 3.6.4

Detailed description

I'm trying to import a .mesh file, it has MeshSerializer_v2.1 R2 inside.
Is this supported? Am I doing something wrong?
File balloon1.mesh here:
https://github.com/stuntrally/stuntrally3/blob/main/data/objects/balloon1.mesh

blender2ogre.log

2023-11-26 17:07:55 [ INFO] Target_path: /home/ch/_sr/_sr3/data/objects
2023-11-26 17:07:55 [ INFO] Target_file_name: balloon1.mesh
2023-11-26 17:07:55 [ INFO] * Loading mesh from: /home/ch/_sr/_sr3/data/objects/balloon1.mesh
2023-11-26 17:07:55 [ INFO] * Parsing file: /home/ch/_sr/_sr3/data/objects/balloon1.mesh.xml ...
2023-11-26 17:07:56 [ INFO] - Done at 0.82 seconds
2023-11-26 17:07:56 [ INFO] * Collecting mesh data...

Error in Blender:

Python: Traceback (most recent call last):
  File "/home/ch/.config/blender/3.6/scripts/addons/io_ogre/ui/importer.py", line 184, in execute
    ogre_import.load(os.path.join(target_path, target_file_name))
  File "/home/ch/.config/blender/3.6/scripts/addons/io_ogre/ogre/ogre_import.py", line 1359, in load
    xCollectMeshData(meshData, xDocMeshData, onlyName, folder)
  File "/home/ch/.config/blender/3.6/scripts/addons/io_ogre/ogre/ogre_import.py", line 316, in xCollectMeshData
    sm['geometry'] = xCollectVertexData(subnodes)
  File "/home/ch/.config/blender/3.6/scripts/addons/io_ogre/ogre/ogre_import.py", line 263, in xCollectVertexData
    u = float(vt.getAttributeNode('u').value)
AttributeError: 'NoneType' object has no attribute 'value'
bpy.ops.ogre.import_mesh(filepath="/home/ch/_sr/_sr3/data/objects/balloon1.mesh.xml")

OgreXMLConverter.log or OgreMeshTool.log

Trying to read /home/ch/_sr/_sr3/data/objects/balloon1.mesh as a v1 mesh...
Failed.
Trying to read /home/ch/_sr/_sr3/data/objects/balloon1.mesh as a v2 mesh...
Success!
Saving as a v2 mesh...
MeshSerializer writing mesh data to stream ...
File header written.
Writing mesh data...
Writing submesh...
Submesh exported.
Exporting LOD level thresholds....
LOD level thresholds exported.
Exporting bounds information....
Bounds information exported.
Exporting submesh name table...
Submesh name table exported.
Exporting hash for caches...
Exporting hash for caches exported.
Mesh data exported.
MeshSerializer export successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions