Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Animating nodes objects

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2014

    Question Animating nodes objects

    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

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Is this for skeletal animation? I'll answer presuming it is. #2. You typically wouldn't do #1. It takes a lot of space -- much more than you need to reconstruct joint transforms for typical animated characters on-the-fly quickly with reasonable accuracy. Also, #1 predetermines your frame rate, which is undesirable. Re your comment on averaging transforms, I'd highly recommend reading up on dual quaternions. Also the Animation section of Jason Gregory's Game Engine Architecture is a great primer for this (though it predates common use of dual quats in skeletal animation).

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2014
    yes i'll use it for skeleton also for animating my 3d objects (car,air plane,..)wich moves static movement. so #2 will be better in gaming. thank you so much for helping

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts