Lab 1: Project 1 Setup

CSC385 - Computer Graphics

Goal: The purpose of this tutorial is to get you started on project 1.

Action:

  1. Download Project 1 source files from blackboard to your Desktop (or location of choice) and unzip.
  2. Download Project 1 sample executable from blackboard to your desktop (or location of choice).
  3. Create a new Visual Studio Project for project 1.
    1. From the start menu select Microsoft Visual C++ 2008 Express Edition.
    2. Choose the File tab then select New -> project.
    3. On the left pane of the window that appears select product type: Visual C++, win32.
    4. In the right pane of the same window choose Win32 Console Application.
    5. For the location enter the name IP2008 and choose the Desktop as the location (or location where you put the IP2008 folder).
    6. On the left pane of the new window that appears click on Application Settings.
    7. In the right pane of the same window check Empty project.
    8. Click finish.
    9. Go to the IP2008 folder on your Desktop (or other location). You should now see the Visual Studio solution (IP.sln). The project should open in Visual C++, if not, double click the solution to open the project.
    10. In the left pane of the VS window, you should see three empty folders for Header Files, Resource Files, and Source Files. Drag the header files (.h - 5 files) from the IP2008 folder into the header folder. Drag the source files (.cpp - 4 files) into the source folder.
    11. Click on the Project tab and select References. Open Configuration Properties and click on C/C++. In the righthand pane at "Additional Include Directories" add the following:
       C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL
      then click OK.
    12. Click on the Build tab and select Build. The program should compile.
  4. Click on the Debug tab then select Start Without Debugging.
  5. Find a 24-bit bmp image on the web and download it to your IP2008 folder.
  6. Right click in the window labeled Image Processor. Choose File->Open. In the command window enter the filename of your bmp file at the prompt. It should open.
  7. Now write a convert to gray routine in ip.cpp. NOTE: do not edit anything but ip.cpp.

Deliverables:

None.