hi guys
i am traying to make animation movement in opengl by making frames list each animation just like this
A- animation contains number of channels
B- channels contains 3dNode and number of keyFrames ;
C- keyFrames contains transform(location,rotation,scale) and Frame State (in which frame exactly)
D- each frame will be between two keyframe means it’s contains Right Keyframe and Left KeyFrame
but i need your recommendation how to play animation in the games. i have two way to do it
1 - Create Transform Per Frame
by getting frame Avrage Between the two Keyframes. playing animation means the node will get the transform From The current Frame
2- calculate Transform Per Frame
just like #1. but the deffrent is: playing Animation means the node will calculate the Avrage in the real time
booth are working but #1 is more memory size and less processing and #2 is less Memory Size and More processing
so when i need to play Animation in Games which one will be better??
thank you