blender2ogre icon indicating copy to clipboard operation
blender2ogre copied to clipboard

OgreMeshTool Fails

Open MBetters opened this issue 4 years ago • 11 comments

Addon settings:

image

Export settings:

image

Error:

image

MBetters avatar Mar 24 '21 20:03 MBetters

The mesh tool is valid. It's from ogre-next (v2):

image

MBetters avatar Mar 24 '21 20:03 MBetters

My config.py:

image

MBetters avatar Mar 24 '21 21:03 MBetters

My exit code for OgreMeshTool isn't 0.

image

MBetters avatar Mar 24 '21 21:03 MBetters

Disabling both Shape Animation and Shape Normals is what worked. Duplicate of https://github.com/OGRECave/blender2ogre/issues/56

MBetters avatar Mar 24 '21 23:03 MBetters

@MBetters they are actually different issues, the add-on scripts are failing at different instances.

In issue #56 the error is in mesh.py, now the error seems to be in util.py when calling the OgreMeshTool.

Since I'm not using Ogre 2.x, I didn't test this scenario when recommending that you disable only Shape Normals.

sercero avatar Mar 26 '21 00:03 sercero

Can you please reopen this issue?

Thanks.

sercero avatar Mar 26 '21 00:03 sercero

@MBetters it seems that the problem is trying to use OgreMeshTool with pose animations and the v2 option, I think that pose animations are not supported in Ogre v2 Items.

I will ask @darksylinc in the forums.

sercero avatar Mar 29 '21 01:03 sercero

maybe for now we should just gracefully abort with "Pose animations are currently not supported for V2 meshes". This would hint to the workaround instead of a cryptic error message.

paroj avatar Mar 30 '21 12:03 paroj

@paroj I was going to ask what do you think about not using an assert if the tool returns non-zero value, but just printing an error in the log and the report saying that the binary mesh will not be generated, just the xml.

sercero avatar Mar 30 '21 18:03 sercero

when I added the asserts, exporting XML only was not an option. Should be fine nowadays.

paroj avatar Mar 30 '21 21:03 paroj

@paroj another question, I was thinking of adding an option to delete the .xml after conversion. Do you concur?

sercero avatar Mar 30 '21 21:03 sercero