CS 381 Fall 2012  >  Assignment 3

CS 381 Fall 2012
Assignment 3

Assignment 3 is due at 5 p.m. Monday, October 1. It is worth 20 points.

Procedures

E-mail answers to the exercises below to ggchappell@alaska.edu, using the subject “GA3”.

Exercises (20 pts total)

Exercise A — Running a Program with Shaders

Purpose

In this exercise, you will compile and execute an OpenGL/GLUT program that includes GLSL shaders, and tell me what it does. You will need the GLEW package installed.

Instructions

If necessary, install the GLEW package on your machine.

Download, compile, and execute the application check_glsl.cpp (this requires the header glslprog.h to be in your lib381 subdirectory). Tell me what the application does. Hint: If you see something multi-colored, then shaders are working; if you do not then they are not.

Exercise B — Interactive 3-D Animation

Purpose

In this exercise, you will write an OpenGL/GLUT program that allows the user to interact with an animated 3-D scene rendered in perspective with hidden-surface removal.

Instructions

Write an OpenGL program that meets the following requirements.

Notes


CS 381 Fall 2012: Assignment 3 / Updated: 24 Sep 2012 / Glenn G. Chappell / ggchappell@alaska.edu