CMPS 160 Introduction to Computer Graphics
Lab 0: Introduction/GL Test Program
Fall 2007
Description
For this first lab meeting you will learn how to build an example program using OpenGL. You may use either a lab machine or your own laptop. If you
have a non-Mac laptop, you will be responsible for adjusting any Makefile provided to build programs on your system.
Code: [
tgz] [
zip]
Slides: [
ppt] [
pdf]
Opening a terminal window for the local machine is
actually the trickiest part here on the lab machines. Click the SSH icon in the dock and log in as the dialog prompt you. This should (contrary to
intuition) open two windows. One of them is a session on unix.ic and the other on the local machine. Find and close the unix.ic window as it will
not be used. The remaining window should leave you in the home directory for LabUser. Any files left on the local machine will be lost when you log
out. If you downloaded the file linked above to the desktop be sure to cd Desktop to find it. Unpacking and building a program with make should
already be a familiar process, however, if not:
$ tar -xzvf prog0.tgz
$ cd prog0
$ make
$ ./gltest
In the future, when you have actually made some code of your own to be proud of, make sure you copy it back to your home directory on unix.ic.
There is a link on the desktop to a graphical sftp program with the name "Home directory on sftp.ic.ucsc.edu". You can use this program to drag and
drop your files between your persistent home directory and the local machine. Alternatively, you may use scp from the terminal if you are familiar
with it. It is very likely that a few people this quarter will lose a lot of work due to forgetting to copy their files off the local machine, try
not to let it happen to you!
page last updated: October 01, 2007.