So basically, I am looking for a way to cheat at skinning my model since I understand the concepts but not the implementation of doing it the legitimate way. Currently I have my skin in Blender and can export coords as .raw just fine, and my hierarchical skeleton is in openGL (C++).
My idea is simple, most likely overly so:
I can line up my Blender skin coords with my skeloten joints with some fancy checking algorithms and essentially map every vertex to one bone, and now i want to say “every skin vertex associated with this bone, move with that bone’s hierarchical transforms.”
This works all well and good EXCEPT when i get to the dividing line of the joint. My problem boils down to the fact that i’d LIKE to do something like the following:
glBegin(GL_QUADS);
glVertexf(top-right...);
glVertexf(bottom-right...);
glPushMatrix();
glRotatef(joint_angle);
glVertex(top-left);
glVertex(bottom-left);
glPopMatrix();
glEnd();
Which compiles but doesn’t seem to do anything other than giving me the initial rectangle when I try it on a much smaller scale than an entire skin mesh.
Any ideas? I realize that even if i get this working as I want it will be a pretty lame approximation of true skinning, which is the end goal. So if anyone knows of any beginner-intermediate resources for skinning, preferably related pretty closely to openGL (concrete examples would be nice), that’d be appreciated.
Also, if it ends up that the whole package would be easier done in Blender alone, please let me know so I do not waste undue amounts of time. My professor is sort of married to openGL but at the end of the day a usable model is more important than any program preference.