hover mouse over images

     

the Fresnel effect demonstrated...

Originated from lab6 framework and coded in November 2017.

Anti-aliasing has been applied with pixel super-sampling.
The edges of the sphere look much better with this.


Rolling a ball...

Started with lab6.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. 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


golf ball