Hi,
I made my model in Maya and exported with Collada Exporter 3.05C

If I animate it using just rotations on the bones, everything works
fine.
If I add an Y translation on a bone, I get an exception at Channel.as
line 81

target[type[i]] = ((time - times[_index]) * param[int(_index + 1)][i]
+ (times[int(_index + 1)] - time) * param[_index][i]) /
(times[int(_index + 1)] - times[_index]);

type is the array with x, y, z properties and i==2 (so it sets the z
component)
The problem is that the param array has only a value for x, but NaN
for every Y and Z.
So for example param[_index][2] == NaN, and thus I get the exception.

I suppose the problem is that, during parsing, Collada doesn't those
values in the XML file.
I tried to add dummy translations of the X and Z to the same bone
(translations that actually doesn't translate anything) and I get no
exceptions anymore, but during the animation some vertices of my model
are in the wrong position (I get a leg of my character uspide down).
So I think it's making a wrong computation somewhere during the
animation. This happens both with interpolation on and off.
If I remove any translation from the bones animation, everything is
fine.

Any idea or workaround?

Thanks

Reply via email to