—!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> CS 381 Fall 2012: Assignment 4
CS 381 Fall 2012  >  Assignment 4

CS 381 Fall 2012
Assignment 4

Assignment 4 is due at 5 p.m. Friday, October 12. It is worth 20 points.

Procedures

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

Exercises (20 pts total)

Exercise A — Writing Shaders

Purpose

In this exercise, you will write a pair of shaders in GLSL.

Instructions

Write a vertex shader and a fragment shader for use with the application useshaders.cpp (this requires the header glslprog.h to be in your lib381 subdirectory).

Your shaders should do the following.

Do not modify useshaders.cpp.

Exercise B — Animated Hierarchical Object

Purpose

In this exercise, you will write an OpenGL/GLUT program that allows interaction with an animated 3-D hierarchical object.

Instructions

Write an OpenGL program that meets the following requirements.

Notes


CS 381 Fall 2012: Assignment 4 / Updated: 4 Oct 2012 / Glenn G. Chappell / ggchappell@alaska.edu