CS312 Lab 4: Lights and Materials
- Copy the demo executables lightposition and lightmaterial
from ~eeaton/public/cs312/handouts/gldemo/
to your own directory. Run both and experiment with the
parameters. The programs rely on having ./data/ in the same
directory (which you copied in previous labs). If you don't have
it copied, make a copy of it as well into your own directory.
- Write a program to display a spinning solid
sphere (spins around its own center). The Open-GL notes discussed in
class on Monday may be useful. Use some perspective projection
of your choice. The sphere should be lit. You may need more than one
light. Choose some material and color combination to your liking.
Place your code into a directory named LastnameFirstname-Lab4.
Then
create a tar archive of that directory, such that the tar file
expands to the directory (not a bunch of files). Copy that tar archive
into ~eeaton/submit/cs312/username/ (where "username" is your
cs system username) to
complete the submission.