CS334 Fundamentals of Computer Graphics

Spring 2008

Announcements:

·       All your CS Accounts should work now.

·       Blackboard Vista should now be listing this course for all of you. We will use it frequently for announcements/links/homework submission…!

Setting up OpenGL/GLUT/GLUI in Visual Studio 8.0

·       Visual Studio 8.0 is installed in the Windows machines in HAASG056.

·       OpenGL, GLUT and GLUI .lib and .h files can be found in

o   C:/Program Files/Visual Studio 8/VC/include

o   C:/Program Files/Visual Studio 8/VC/lib

·       Follow the instructions in this link to setup your OpenGL/GLUT/GLUI project in VS2008.

·       Try to compile it (F7) and run it (F5) (it should work if you follow the instructions).

·       Replace the code in your .cpp source file with the skeleton code given in the spec of the Assignment.

·       Include <windows.h> in your .cpp file. It MUST be the first header file included.

o   Notice that <GL/glui.h> must also be included. Go to C:/Program Files/Visual Studio 8/VC/lib to verify the location of glui.h. You might need to change it to #include <glui/glui.h>

·        Try to compile again. At this point you should be done setting up the project. Save this project (and its settings) as a skeleton that you will use for the following assignments.

·       Next: Fill up the code for the screensaver logic. Remember that you can only use function glDrawPixels(…)

Have fun… and come with questions to the PSO!

All assignments, including Assignment 0, MUST be submitted using Blackboard Vista. Do NOT email me any files.