PDA

View Full Version : OpenGL Bone Animation



bobGL
03-26-2008, 02:23 AM
It might be out of the scope of this forum but... I have to ask... does anyone have a link to some source code to learn about bone animation... I google, and all I found is too simple (like ultimategameprogramming.com) or without sources...

Tks in advance!

Cheers,

oc2k1
03-26-2008, 07:28 PM
Here are some shaders: http://lumina.sourceforge.net/Tutorials/Armature.html

-NiCo-
03-27-2008, 01:21 AM
Improved skinning (http://http.download.nvidia.com/developer/SDK/Individual_Samples/samples.html#glsl_skinning)



This shader takes in a set of all the transformation matrices that can affect a particular bone. Each bone also sends in a list of matrices that affects it. There is then a simple loop that for each vertex goes through each bone that affects that given vertex and transforms it. This allows just one Cg program to do the entire skinning for vertices affected by any number of bones, instead of having one program for one bone, another program for two bones, and so on.

uruk
03-27-2008, 06:01 AM
A simple tutorial here (Cg and GLSL). (http://www.codesampler.com/oglsrc/oglsrc_11.htm#ogl_skinning)