This is a page of sample computer graphics projects created by your instructor.

The following 4 animations demonstrate that a project can be small
but still contain many computer graphics elements.

hover mouse over each image to see elements
     


Demonstration of the Fresnel effect
Reflections on a specular surface become more clear when viewed at a glancing angle, rather than straight-on. Look at the sides of the cube. Sometimes you can see a reflection of the floor and sometimes not. Depends on the viewing angle. 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.
Spheres with a surface texture
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 is 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





Fall 2019 project