Building Blocks 3D Vectors If you're building a 3d program, you should consider building a 3d vector class first. The vector class can be used for both points and vectors. Includes sample code: vec3.h
Matrices The matrix is another old staple of 3d programming. You'll find plenty of use for a 4x4 matrix class, such as the one presented in this article. Code: matrix.h
Quaternions Quaternions are used to store and interpolate rotation. Here you can read about and view code for a decent sample quaternion class. Code: quat.h
Skeletal Animation | Pixel&Vertex Shaders | Lighting & Shadows | Collision Detection | Topic Overview | Sample Programs | Math | About this Blog | Off Topic
|