Author Topic: Multiple rotation argument in bones conversion  (Read 1366 times)

Offline subhalakshmi27

  • byte
  • *
  • Posts: 21
    • View Profile
Multiple rotation argument in bones conversion
« on: May 17, 2012, 07:07:40 am »
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

Offline subhalakshmi27

  • byte
  • *
  • Posts: 21
    • View Profile
Re: Multiple rotation argument in bones conversion
« Reply #1 on: May 17, 2012, 07:17:15 am »
Hi All,

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

Regards,
Subha

Offline raft

  • Moderator
  • quad
  • *****
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Multiple rotation argument in bones conversion
« Reply #2 on: May 17, 2012, 01:04:38 pm »
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:

Code: [Select]
jmeOgre2Bones.bat -rotation "x90,z180" -out model_rot_x90_z180.group.bones -in model.mesh.xml