Docsity

Skin Project: Loading and Rendering a Skin File with OpenGL, Slides of Computer Graphics and Animation

Partial preview of the text

Download Skin Project: Loading and Rendering a Skin File with OpenGL and more Slides Computer Graphics and Animation in PDF only on Docsity!

Project 2: Skin

Assignment:

 Load a .skin file and attach it to the skeleton

using the world space matrices to transform the

positions and normals with the smooth skin

algorithm

 Use GL lighting to display the skin shaded (use

at least two different colored lights)

 Add some sort of interactive control for selecting

and adjusting DOFs (can be a simple ‘next DOF’

key and ‘increase’ and ‘decrease’ key). The

name and value of the DOF must be displayed

somewhere

Suggestions

 You might consider making classes for:  Vertex  Triangle  Skin  Keep a clean interface between the skin and the skeleton. A Skeleton::GetWorldMatrix(int) function may be all that is necessary. This way, the skeleton doesn’t need to know anything about skin and the skin only needs to be able to grab matrices from the skeleton.  Make sure that your skeleton creates the tree in the correct order for the joint indexing to work correctly.