Revision 2 as of 2007-01-08 19:09:15

    Assignment1

Assignment 1

Goal: To familiarize yourself with the basics of OpenGL and GLUT by creating a simple OpenGL application.

Due Date: January 18, 2007

Steps

  1. Download the skeleton code and setup GLUT with your IDE to get the code to compile and run.
  2. Read up on OpenGL and GLUT and answer the following questions. Be sure you can answer all these questions before moving on.
    1. In a GLUT program, how is control passed back to the programmer? How is this set up during initialization?
    2. What does the parameter to glutInitDisplayMode() in main() specify?
    3. What do the calls to glOrtho() and glViewport() in the reshape() function accomplish?
  3. Add to the program to draw something (anything!). Your completed program should at a minimum:
    • Draw using at least two primitives (e.g. lines and triangles)
    • Draw using multiple colors
    • Use some user input to do something in the program. This could be as simple as using the number keys to select one of multiple modes.
  4. Write up and submit your program. Your write up should contain both the answers to the questions and any notes we should know about running your program.

Resources

Inspiration for What to Draw
You may draw anything interesting, but here are some ideas to get you started.

Grading Scale Grading for this and all future assignments is based on a four star scale. On this assignment you can receive:

  • 4 stars for a complete assignment
  • 1 star if you give only the answers to the questions
  • 0 stars otherwise

How to submit

  • Create a new wiki page with your answers to the questions and link to it from your personal wiki page.
  • Email a copy of your updated main.cpp to the instructors.
Recent