blender2ogre icon indicating copy to clipboard operation
blender2ogre copied to clipboard

Invalid option -None

Open GrauBlitz opened this issue 3 years ago • 3 comments

When im tryinng to export a model (Blender 2.93 or Blender 3.1) i only get the following error in the blender console:

[ INFO] Writing log file to: G:\/blender2ogre.log
[ INFO] Target_path: G:\
[ INFO] Target_file_name: untitled.blend
[DEBUG] Target_file_name_no_ext: untitled
[ INFO] * Processing Scene: untitled, path: G:\
[DEBUG] ABABA Cube
[DEBUG] ABABA Camera
[ INFO] * Processing Materials
[ INFO] * Exporting root node: Cube
[ INFO]   - Vertices: 8
[ INFO]   - Loop triangles: 12
[ INFO] * Generating: Cube.mesh.xml
[ INFO] * Writing shared geometry
[DEBUG] * Mesh has NO custom normals
 + Faces [==================================================>] 100.0%
[ INFO] - Done at 0.01 seconds
[ INFO] * Writing submeshes
[ INFO] - Done at 0.03 seconds
[ INFO] - Created Cube.mesh.xml at 0.03 seconds
[ERROR] OgreMeshTool finished with non-zero status, check OgreMeshTool.log
[ INFO] C:\sdk\OgreSDK\bin\Release\OgreMeshTool.exe -e -O puqs -None G:\Cube.mesh.xml
[ INFO] - Created Cube.mesh in total time 0.09 seconds
[ INFO] * Exporting root node: Camera
[ INFO] - Exported Ogre Scene: G:\untitled.scene
________________________________________________________________________________
Report:
  ERRORS:
    - OgreMeshTool finished with non-zero status converting mesh: (Cube.mesh.xml), it might not have been properly generated
  Original Vertices: 8
  Exported Vertices: 24
  Original Faces: 12
  Exported Triangles: 12
  MESHES: 1
  CAMERAS: 1

Extended Report:
  MESHES:
    . Cube
  CAMERAS:
    . Camera
________________________________________________________________________________

blender2ogre.log

[...]
2022-04-13 11:22:28 [ INFO] - Created Cube.mesh.xml at 0.03 seconds
2022-04-13 11:22:28 [ERROR] OgreMeshTool finished with non-zero status, check OgreMeshTool.log
2022-04-13 11:22:28 [ INFO] C:\sdk\OgreSDK\bin\Release\OgreMeshTool.exe -e -O puqs -None G:\Cube.mesh.xml
[...]

OgreMeshTool.log

Invalid option -None
Couldn't identify extension of filename '-None'
Exception caught: Could not open '-None'

Blender Plugin Config: OGRETOOLS_XML_CONVERTER points to my ogre-next (2.3.0) SDK OgreMeshTool.exe

GrauBlitz avatar Apr 13 '22 09:04 GrauBlitz

seems like MESH_TOOL_VERSION is somehow None for you: https://github.com/OGRECave/blender2ogre/blob/02caf60bf9c55c87a9c6dd54a1b207acc7f86dcd/io_ogre/util.py#L213

paroj avatar Apr 13 '22 11:04 paroj

That is interesting, i dont see the mentioned Version selection on the Export Settings.

https://github.com/OGRECave/blender2ogre/#ogrenext-tips

Just the Swap Axis and Clean up xml files settings.

EDIT: The console also shows this error:

blender-3.1.2\3.1\scripts\addons\io_ogre\ui\export.py:116
rna_uiItemR: property not found: OGRE_OT_export.EX_V2_MESH_TOOL_EXPORT_VERSION

GrauBlitz avatar Apr 13 '22 11:04 GrauBlitz

Can you try to do what says here? Updating to new versions

Delete your .pickle file and reconfigure blender2ogre to see if this is still happening.

sercero avatar Feb 18 '23 00:02 sercero