The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Dilon
Gnoblar
Posts: 12 Joined: Thu Jul 14, 2005 9:44 am
Location: Russia
Quote
0
login to like this post
Post
by Dilon » Fri Nov 04, 2005 3:01 pm
Hi!
I'm using maya2ogre exporter for our game. The models have some animations for one mesh. For easy exporting I wrote .py script, which is generates such string as:
C:\Progra~1\Alias\Maya6.0\bin\maya2ogre.exe -in bombbonus1_t1_r28_s74_f215_c413_t450.mb -t -mesh bombbonus1.mesh.xml -skel bombbonus1.skeleton.xml -anim take 1 28 2 -anim rotate 28 74 2 -anim scratch 74 215 2 -anim fly 215 413 2 -anim collision 413 450 2
Export pass well, but instead 5 animations I have only 3: collision, scratch and take. Other animations are not exported. Is it bug or I'm doing something wrong
Dilon
Gnoblar
Posts: 12 Joined: Thu Jul 14, 2005 9:44 am
Location: Russia
Quote
0
login to like this post
Post
by Dilon » Fri Nov 04, 2005 4:59 pm
Solved. I found that maya2ogre exporter exports only 1, 3, 5 etc. parametrs, that's why the solution is:
C:\Progra~1\Alias\Maya6.0\bin\maya2ogre.exe -in bombbonus1_t1_r28_s74_f215_c413_t450.mb -t -mesh bombbonus1.mesh.xml -skel bombbonus1.skeleton.xml
-anim take 1 28 2 -anim fake 1 2 2 -anim rotate 28 74 2 -anim fake 1 2 2 -anim scratch 74 215 2 -anim fake 1 2 2 -anim fly 215 413 2 -anim fake 1 2 2 -anim collision 413 450 2