
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

The goal of this homework is to gain experience with modeling and viewing transformations and parametric surfaces. The scene to be rendered consists of a parametric surface and several orbiting shapes. The orbiting shapes are to be drawn using glutSolid* functions. The models will continu- ally rotate using time-based animation and glut callback functions. The objects are to move along circular paths with radius = 1. The parametric surface is given by
x = cos(a)(n + sin(b) cos(a/2) −
sin(2b) sin(a/2) 2
y = sin(a)(n + sin(b) cos(a/2) −
sin(2b) sin(a/2) 2
z = sin(a/2) sin(b) +
cos(a/2) sin(2b) 2 for 0 ≤ a ≤ 2 π, 0 ≤ b ≤ 2 π and n = 1.0. Plot the surface by evaluating this equation at points evenly spaced in the a,b domain.
Your will create an interactive 3D application with the following features:
Submit all source code, a README file, and a working project file or Makefile which builds an executable named ’hw5’ or ’hw5.exe’. Turn in a single tarred and gzipped, or zipped file by the start of class on the due date. Electronic submissions should be made through ecampus.wvu.edu.