COS 426 Assignment 1


Introduction to OpenGL and Interaction

Due 1201 AM Friday September 29

In this assignment, you are required to learn enough OpenGL to be able to draw on the screen and to read the mouse.

The minimal assignment will be to do just this. Of course, you won't be satisfied with doing the minimal assignment and will want to do more.

If you look in directory /u/cs426/OpenGL/book you will find a host of programs that do all that is required here and much more. These accompany the text OpenGL Programming Guide which you can access by typing /usr/sbin/insight -v OpenGL_PG .

  1. Write a simple OpenGL program to draw a line segment on the screen. Having mastered segments, turn to the drawing of triangles, squares, polygons, ...
  2. Write a simple OpenGL program that first draws a line segment and then changes the segment in response to mouse clicks as follows:
  3. Write a simple OpenGL program to do ``mindless animation''. Have two images and flicker between them. This works best with a square given in two views, one rotated 45 degrees from the other.
  4. Extra credit: Redo problems 1-3 using interesting shapes and interesting interactions with the goal of creating an interesting animation.