CS480 Computer Graphics Fall 2010/2011 Assignment 2 – 2d modeling Tool Due Dates



Download 8.92 Kb.
Date20.10.2016
Size8.92 Kb.
#6505
CS480 Computer Graphics

Fall 2010/2011

Assignment 2 – 2D Modeling Tool
Due Dates

Assignment is due on, October, 27 11:59am. Thursday, Oct. 28 at midnight


No Extension

Late penalty for the first day is 10%, for the second day is 20%.


Introduction

You need to write an OpenGL program which can be used to model 2D Objects. The project will test your skills on 2D primitives, interactions and basic GUI design using OpenGL and GLUT.

You need also use your 2D modeling tool to model a nice 2D scene with at least 5 2D objects.

This project is designed to be finished by one person team only.

Your 2D modeling tool should include all the following features described below.

Features of the program

Your program must contain all of the following features:



For drawing

  • Can draw lines, circles, triangles, rectangles, polygons with arbitrary number of edges. You must have menu items include all kinds of shapes you want to draw. By selecting one of menu item, you can draw it out.

  • Each object must have a submenu to choose the object color. The object must be drawn using the selected color. Your program may support up to 5 different colors.

  • When drawing triangles, and polygons, you need to specify the position of each vertex using mouse (maximum of 10 vertices).

  • When drawing rectangles, you only need to specify two vertices.

  • Circle must be drawn using the GL_TRIANGLE _FAN, you need to select the circle center by the mouse and the circle radius is 20.

  • When drawing lines, you need to specify the beginning and end of the line using the mouse, the first click indicates the beginning and the second click indicates the end..


What to Submit

  • Put your solution in one or more C++ source files. The main file (which includes function main{}) should be named [yourStudentID].cpp.

  • Please zip all files and submit it using the e-learning system (http://elearning.just.edu.jo/)



  • Please also include a description file, called “descriptions.txt” that describes how to use your program.

Grading

Your overall grade will be based on the following:



  • Completion of the feature list.

  • How easy to use the GUI.

  • How complex and nice (in art sense) your final 2D scene is.

Tints and References

Please read carefully about GLUT tutorials here: http://www.lighthouse3d.com/opengl/glut/.



For more code, check the text book code; check the code in Chapter 2.
Download 8.92 Kb.

Share with your friends:




The database is protected by copyright ©ininet.org 2024
send message

    Main page