Multiple rotation argument in bones conversion

Started by subhalakshmi27, May 17, 2012, 07:07:40 AM

Previous topic - Next topic

subhalakshmi27

Hi All,

I am trying to convert mesh.xml file to .bones file with multiple rotation argument (x90,z180) but I am getting an Illegal argument exception.


D:\jpct\bones\Bones\scripts>jmeOgre2Bones.bat -rotation x90,z180 -out model_rot_x90_z180.group.bones -in model.mesh.xml

D:\jpct\bones\Bones\scripts>echo off
Exception in thread "main" java.lang.IllegalArgumentException: Unknown args: [z1
80]
        at raft.jpct.bones.util.JMEOgreImporter.main(JMEOgreImporter.java:167)


I saw the help manual, it is mentioned to add comma between the arguments.

usage: JMEOgreImporter [options] -in <ogre.mesh.xml> [ogre.mesh.xml...]
options:
    -out <destination file>                         : destination file to write
    -scale <scale>                                  : loading scale, default 1
    -rotation <<x|y|zdegrees>[,x|y|zdegrees]...>    : loading rotation, default
none (sample: x180,y180)

Please let me know if I am missing some arguments.

Thanks and Regards,
Subha

subhalakshmi27

Hi All,

Instead of jmeOgre2Bones.bat when I used jmeOgre2Bones.sh this problem is not observed and it was working fine.

Regards,
Subha

raft

yes the syntax is true. I think the problem is related with Windows' command line parser. possibly it uses comma (,) as an argument seperator. try giving rotation argument in quotes:

jmeOgre2Bones.bat -rotation "x90,z180" -out model_rot_x90_z180.group.bones -in model.mesh.xml