Math 155A - Introduction to Computer Graphics – Fall 2020
Instructor: 
Sam Buss,  University of California, San Diego

Project #0 - Learn to login and use Visual C++ with OpenGL, GLFW and GLEW

Goals:  In this assignment, you get oriented to using Visual C++ or other development environment, learn how to create a new C++ programs,and learn some simple debugging techniques.  See the "Summary of Work" at the bottom of this document for a list of what you must do.

DUE DATE: Friday, October 9, by 10:00pm.

What to hand in:  When you successfully complete this assignment, you fill out a google docs form as described below, and answer the questions that are included with the assignment.  You may in addition post related questions and answers to the piazza bulletin board.

The google form for your answers is at: https://forms.gle/FKcvDFLeL79PemNt8.

If you have problems and cannot complete the work by the due date, you must promptly contact Professor Buss or one of the TAs to discuss the problems.

Turn in procedures (Only for Future Assignments -- NOT THIS ASSIGNMENT.)  You will upload your source files and a PDF file to a shared google drive folder. Grading will be personalized and one-on-one in a zoom session with Professor Buss or one of the TA’s.

OpenGL will run on many environments, including Windows, Linux, and Macintosh.  See the "Graphics resources on the main course web page for help on getting your computer to work with OpenGL. If you cannot get it to work on you own computer, you can do your work through the UCSD CloudLabs Windows 10 environment

FOR PROJECT #0, PLEASE DO THE FOLLOWING STEPS #1 - #3.

1.     Install Visual Studio C++ and associated GLEW and GLFW files on your Windows machine.  Or setup a similar environment on a non-Windows machine. Or have learned how to use UCSD’s cloudlabs for the course.

2.     Download the PDF file VChelp.html.   Follow the instructions in that document.  (The full URL for this file is http://www.math.ucsd.edu/~sbuss/CourseWeb/Math155A_2020Fall/Project_0/VChelp.html.)  

3.     Write short answers for questions A, B, C, and D. 

4.     Fill out the google form at, at https://forms.gle/FKcvDFLeL79PemNt8; answering the four questions; and letting us know whether you have finished the assignment.  If any of your answers are long, please consider emailing Professor Buss with them, or, even better, posting to the piazza.com course bulletin board.

Congratulations: you have learned how to use Visual C++.  Summary of work:  You should have completed the following tasks:

1.     Setup a Visual Studio C++ development environment, or other development environment on your own system, or on cloudlabs.

2.     Created a new HelloWorld project.

3.     Learned how to use the interactive debugger, including
a.  How to set a breakpoint,
b.  How to single step through your code,
c.  How to watch the value of variables as you single-step through the code, and
d.  How to step into a function call.

4.     Downloaded, compiled, and run the SimpleDrawModern program, using Modern OpenGL with GLFW and GLEW.

5.     Experimented with different color values.  Seen an example of how the values for Red/Green/Blue (RGB values) affect the color you see on the screen.

6.     Learned how an OpenGL program can receive key strokes as input.

7.     If not using the lab machines, learned how to compile and run C++ with OpenGL code, learned how to transfer code to the lab and get it to work there under Visual C++.

DUE DATE: Friday, October 9, by 10:00pm. Please email the instructor and TAs if you are not able to meet the due date. This can be done with a private piazza post.

---------------------------------------------------------------------------------------------