Bones, matrixmanipulation or animation buffer
Members - Reputation: 117
Posted 10 December 2012 - 01:25 PM
i'm programming a tiny game in webgl, and i would ask what is a better way to program animations:
actually i do a matrix transformation for every element of an object (a humanoid body for example),
i tryed to implement a bone system, where vertices are calculated from bone position, this is more cloth-like but too wavy.
so i'm thinking to do a very complex animation, and store precalculated vertices in a buffer and then ->
frame1 -> draw(0,100)
frame2 -> draw(100,100)
and so on
is this a good metod? what about performance? and if can this work, are there somebody who did that?
Crossbones+ - Reputation: 24023
Posted 10 December 2012 - 04:52 PM
It is really not a good idea. Just use matrix multiplication or position-vector/scale-vector/rotation-quaternion interpolation with a matrix build out of those components at the end.
My Art: http://l-spiro.deviantart.com/gallery/4844241/Realism My Music: https://soundcloud.com/l-spiro
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums
Members - Reputation: 1641
Posted 12 December 2012 - 01:59 PM
CTO at Conjecture, Inc.