Maya Ogre Exporter - 0 vertex Morph problem

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
User avatar
dpakatheman
Gnoblar
Posts: 23
Joined: Tue Nov 13, 2007 10:33 pm
x 6

Maya Ogre Exporter - 0 vertex Morph problem

Post by dpakatheman »

The Maya exporter can export corrupt mesh files with animations that reference invalid morph indices. When exporting morph targets in blendshape.cpp (line 345 & 282 ), the poses are only exported if they contain at least 1 vertex that moved. But when morph animations are exported, the are exported referencing the (potentially invalidated) index in the Maya array (line 431).

We've fixed this internally by no longer pruning the blendshapes, but that might not work for everyone. Not sure of the best place for this, so sorry if it should be posted elsewhere.