Computer Graphics (CS 330)
Project No. 3 (20 points)
Problem:
-
To manipulate an object in a 3D world using a 2D input device (mouse).
Task:
-
Develop a glutMotionFunc called moveIt( ) that will allow you to grab a
3D vertex of a polygon and move it around in its 3D world. The point will
only begin moving if you first "click and hold" on the vertex.
-
Using C++, OpenGL and GLUT, create a Win32 Console Application program
that will render two polygons using perspective projection, and then
allow the user to grab a pre-specified vertex and move it around.
(See illustration below)
-
Submit your project according to the Project
Submission Guidelines for this course.
Notes:
-
Keep it simple. Don't try to do more until you succesfully complete the
project as described above.
-
You should use the polygon classe(s) you created for Project No. 2.
-
Your "look at" should be simple; I suggest position the eye somewhere on
the Z+ axis, the view reference point at the origin, and the up vector
as (0,1,0).
-
Be careful what settings you use for your frustum(perspective).
Hint:
-
A mouse function is only called when a mouse button is down and
the mouse is in motion.