CMPS 160 Introduction to Computer Graphics
Lab 3: Terrain Rendering
Fall 2007
Description
This lab will introduce you to generating geometry, texturing, camera/world interaction.
Screenshots
lab3 screenshot
Requirements/Grading
  • Functionality (80 points possible)
  • Load height field ppm from command line (5)
  • Load texture skin ppm from command line (5)
  • Generate lighting normals (20)
  • Must be based off height field geometry
  • Light field with 1 stationary light (15)
  • Use a display list to cache height field geometry (15)
  • Animate viewpoint using either keyboard commands or mouse movement (20)
  • Documentation/Style/Efficiency (20 points possible)
  • Consistent Indentation (2)
  • Meaningful Function/Variable Names (2)
  • Comments in Code (4)
  • README: name and e-mail address (4)
  • README: platform built on (2)
  • README: compile instructions (2)
  • README: list of files and what they do (2)
  • README: efficiencies noted (2)
Resources
  • Texture Filtering Code (put with initialization code near gluBuild2DMipmaps):
  • glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
Submit Instructions
  • Using the 'submit' command
  • Submit your source code, Makefile, README, screenshots, video capture, and other files necessary to compile your code.
  • To submit your files, type:
  • submit cmps160-jed.f07 lab3 files
  • Making the video capture for your lab
  • Go to the directory /afs/cats.ucsc.edu/courses/cmps160-jd. There you will find the 'Capture Me' application. (You can also download it from the website: http://www.versiontracker.com/dyn/moreinfo/macosx/15496)
  • Click on the Capture Me icon to get a 'Capture Me' window. You can drag this over to the part of the screen you are trying to capture. You can also resize using the lower right corner of the window.
  • Each time you click inside the window, it captures what is behind this window. In order to record a video clip, first we need to change the settings a bit....
  • Use command (apple key) + Tab to go to the Capture Me application. Then go to 'Preferences.' Under the 'Recording' Tab, change the Frames Per Second to 30 and change the recording time to 60 seconds.
  • Now to record, simply use command + 'R'. You are now recording! The recording will automatically stop after 60 seconds or you can end it by pushing the 'Stop' button. The movie clip is then created on your desktop. If you want to save screen shots and not videos to the desktop, use command + 'S'.
  • In lab demo
  • You will be required to attend the lab session you are enrolled in to demo your submitted code to the TA's.
page last updated: October 21, 2007.