Animation.crossFade

Started by AGP, December 31, 2010, 12:31:21 AM

Previous topic - Next topic

AGP

Sorry for yet another (no doubt annoying) suggestion: object3d.getAnimation().crossFade(int currentSequence, int newSequence). Also very important to be able to cross fade between any two animations.

EgonOlsen

How is that supposed to work? If you have no keyframes between the mesh states of the two sequences, the result would look like crap. And if you have those keyframes, they simply define a new sequence of its own.

AGP

#2
It looks perfect in Unity. I can look up an algorithm, but why wouldn't it just be linear interpolation? I'm sure we can think of something (I'm much more comfortable tackling something like this than that camera issue).

EgonOlsen

I don't see how this should work in a generic way when using keyframe animations. It might work better with skeletal animation, but with pure keyframes...if that would work, you wouldn't need keyframes at all.

AGP

You're right, it would need skeletal animation to not look awful. Maybe I'll try adding it to raft's bones and report my results.