Stuepfnick
04-24-2002, 06:38 AM
Hi there!
I want to add character animation and don't know how to do it best.
I thought of using bones and draw in a hierachical order. But how should I do:
a) Calculate Vertex changes to the model in the current phase and then draw it normal.
b) or draw in hierachical order and use:
glRotate and pop and push matrix between them?
I'd vote for b, but then I have no idea, how to handle the different materials. Now I draw the materials one after another. but if i use bones I could subdivide materials into bones or bones into materials (all seem to get slow) or reduce all chars to 1 material+ 1 texture.
method a would be a way, but calculating all the vertices in real time (quaternion translations) would be to slow I guess.
I could pre calculate the different poses and store them in vertex arrays, lists???
no idea. I hope you can help!
Thanks and
I want to add character animation and don't know how to do it best.
I thought of using bones and draw in a hierachical order. But how should I do:
a) Calculate Vertex changes to the model in the current phase and then draw it normal.
b) or draw in hierachical order and use:
glRotate and pop and push matrix between them?
I'd vote for b, but then I have no idea, how to handle the different materials. Now I draw the materials one after another. but if i use bones I could subdivide materials into bones or bones into materials (all seem to get slow) or reduce all chars to 1 material+ 1 texture.
method a would be a way, but calculating all the vertices in real time (quaternion translations) would be to slow I guess.
I could pre calculate the different poses and store them in vertex arrays, lists???
no idea. I hope you can help!
Thanks and