University of Texas at El Paso
Banner
Compuer Science
   
  Minimize    

Programming Assignment I Introduction: In this assignment, you will get familiar with OpenGL's glut toolkit. General description: A program is provided to you on our class web site. The program displays a rotating rectangle. You need to modify this program to read successive positions and angles from a file and have the rectangle move according to these parameters instead of simply rotating. When all positions have been displayed, the program could do one of three things (you choose) 1) exit, 2) stop at the last position or 3) restart at the beginning.

The input file should have 3 floats per line. The first two floats indicate the position of the center of the rectangle, in normalized coordinates that range from (0.0,0.0) for the left bottom corner to (1.0,1.0) for the top corner. The third float is the angle in degrees, and should be a number between 0.0 and 360.0. If the input is invalid, your program should detect it and stop. We are not looking for fancy error reporting or error recovery, but your program should not crash. Due Date: Tuesday, February 9, 2005. Hand in: Send your program and input file as attachments to our TA (yalbayyar@utep.edu) and to me (longpre@cs.utep.edu).   Grading:  These grading guidelines will be used for all programming assignments. Your project will be graded primarily on correctness (70%). The rest of your grade will be determined by the style, ease of use, and interface of your program and quality of input file (if required) (30%). The penalty for a late homework is n2% for n days late up to one week late, counting weekend days as well. Homework will not be accepted after one week late, unless special arrangements have been made with the professor before the one week is over.

Programming Assignment II Introduction:

In this assignment, you will get familiar with the 3-D operations in OpenGL, and deal with aspect ratio. toolkit. General description:

You need to modify your program from the first programming assignment to display a 3-D cube instead of a 2-D rectangle. Your program should read successive positions and angles from a field and have the cube move according to these parameters. When all positions have been displayed, the program could do one of three things (you choose) 1) exit, 2) stop at the last position or 3) restart at the beginning. The input file should have 6 floats per line. The first three floats indicate the position of the center of the cube, in normalized coordinates that range from (0.0, 0.0) for the left bottom corner to (1.0, 1.0) for the top corner. The three next floats express the angle in degrees, around the x, y and z, in order. Initially, the viewer is at the origin, looking towards the negative z axis. If the input is invalid, your program should detect it and stop. We are not looking for the fancy error reporting or error recovery, but your program should not crash.

 

In addition, you should modify your program for when the window is resized, so that the cube always keeps its aspect ratio. This is done by having the window and the viewport having the same aspect ratio.

 

Due Date: Monday, February 28, 2005

 

Hand in: Send your program and input file as attachments to our TA (yalbayyar@utep.edu) and to me (longpre@cs.utep.edu)

 

Grading:

These grading guidelines will be used for all programming assignments. Your project will be graded primarily on correctness (70%). The rest of your grade will be determined on the style, ease of use, and interface of your program and quality of input file if required (30%). The penalty of a late homework is n2% for n days late up to one week late, counting weekend days as well. Homework will not be accepted after one week late, unless special arrangements have been made with the professor before the one week is over.

   
Documents Minimize    

 TitleOwnerCategoryModified DateSize (Kb) 
Assignment IVYaffa Al Bayyari 4/20/200544.45Download
Assignment VYaffa Al Bayyari 4/20/200539.12Download
Assignment IIIYaffa Al Bayyari 3/19/200545.43Download
Assignment III Proj3.zipYaffa Al Bayyari 4/20/20058.60Download