Rolling a ball...
Started with lab7.cpp.
Just before getting the texture-map color, apply a rotation to
the closehit.normal. The sphere doesn't rotate, just the texture
of it. Use the rotation matrix from lab-5. Change the position of
the ball as it rotates to make it appear to be rolling.
Balls colliding...
Ball is made of triangles. Vertices are transformed and saved each frame.
Phong shading used. Rotation is derived from the velocity using a
rotation matrix created with axis and angle.
Collision physics are derived from the bump.cpp demo program.
development time: about 35-hours