Multiple OgreMeshToNxs converter

Xakiru

18-05-2010 17:28:34

Hey evrybody i made a tool that i'm using with my Ogre1.7 and bloodyMess1.5.5 . i want to share it with you maybe you will find it usfull,i made it to save time and efforts when i'm converting files .mesh to .nxs .

Requirment :
- PHP server : I'm using wamp .
- OgreXMLConverter_d.exe .
- Ruby and devkit should be Installed (http://rubyinstaller.org/).
- hpricot , using gem install hpricot v-0.8.2 .
- flour 0.4 .

Use :
Place your mesh in /conv directory, execute convert.php via Dos cmd or using a browser.
the result should be returned in /conv.




thanks to Caifie and Betajean.

betajaen

18-05-2010 18:03:09

Thanks, I was going to quickly write a patch for you. So you wouldn't need to use your PHP converter.

But Ruby somehow in it's infinite glory got there before you and me:

ogrexmltoflower triangle *.mesh.xml

Which will convert every single mesh in that directory to triangle. I am shocked that Ruby is so amazing that it will accept wildcard parameters. :D

Xakiru

18-05-2010 22:10:17

great one :D , maybe I'm going to get into ruby programing for making simple little useful scripts .