I was experimenting with procedural skeleton animations. I can add frames like below however I’m having problems understanding the logic behind that duration value.
clipNode.addFrame(sPose,1000);
First of all, when I add 2 key frames there’s no animation. When I add a third, I can see animation but only looping between the first two frames. I increase frames but it looks like the last frame is always skipped. Is this intentional?
Second question is what is that duration value supposed to be? I assumed it’s the milisecond time span until next frame but it doesn’t seem to work like that. I add 4 frames (each time sPose is recreated and different oriented jointposes added).
clipNode.addFrame(sPose,1000);
clipNode.addFrame(sPose,10000);
clipNode.addFrame(sPose,3000);
clipNode.addFrame(sPose,4000);
I can see only 3 key frames like I said above but also I assumed interpolation between 1st & 2nd would take 1 sec (1000 milisecs) and between 2nd & 3rd would take 10 or 9 secs but nope, they all seem to take about 5 seconds in between. What’s happening here?