mmonem / blender2ogre

Automatically exported from code.google.com/p/blender2ogre
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Muting of NLA tracks when exporting animations (ogre forum patch by LiMuBei » Fri Jan 07, 2011 2:23 pm) #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Extracts from our Ogre 3D forum topic "Blender25 Ogre Exporter + extended 
.scene format" :
http://www.ogre3d.org/forums/viewtopic.php?f=4&t=61485&start=25

---------------------------------------------------

by LiMuBei » Thu Jan 06, 2011 4:15 pm

I'm in the same boat as supermael28. I thought I understood how it's done, but 
it seems exporting more than one animation is not possible. What I did:
- create an action for each animation
- create an NLA track for each action and import the action therein, thus 
automatically setting in and out frames
Then I export.

What happens is, that I get an animation for every track with the given lengths 
(which is what I expect). But every animation then contains the animation data 
of the top most action in the NLA, cut to the lengths of the respective action. 
So how is it supposed to work?

LiMuBei
Halfling

---------------------------------------------------

by LiMuBei » Fri Jan 07, 2011 12:28 am

I investigated a little further in this. To me it seems the problem is, that 
when reading out the bone positions on export, the NLA stack is evaluated. So 
the top most animations in the stack overwrite the lower ones. The solution to 
this would be that only the currently exported track is unmuted and all the 
rest muted. I am trying to implement this, but so far haven't gotten it to 
work. I may also be totally wrong here...

LiMuBei
Halfling

---------------------------------------------------

by LiMuBei » Fri Jan 07, 2011 2:23 pm

Seems like the muting really was the issue, I hacked the exporter a bit and now 
for me it works. I attached my version in case anyone wants to give it a try. I 
tested it with Blender 2.56a Beta from blender.org on Win7 64bit. 

---------------------------------------------------

Then LiMuBei give some code modified from the addon_ogreDotScene-0.2.6.zip

Original issue reported on code.google.com by sebastie...@gmail.com on 18 Mar 2011 at 9:46

Attachments:

GoogleCodeExporter commented 8 years ago
NLA hijacking was reworked in 0.3.6, so this is fixed.

Original comment by goatman.py@gmail.com on 5 Jun 2011 at 10:36