
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An assignment for cmsc 427, fall 2004, which involves creating a glut application with opengl. Students are required to read and display background images, implement mouse-over functions, and create an interactive perlin noise function. The assignment also includes changing the number of octaves, zoom level, and color map of the displayed noise, as well as saving the image to a bmp file.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

This assignment involves familiarization with OpenGL, GLUT, user interaction, and procedural textures. The assignment web-page is at www.cs.umd.edu/class/fall2004/cmsc427/assg1/. The skeletal program there has code to read and save BMP format image files.
(a) Read in and display the background image MenuBackground.bmp in a GLUT window (3 points). We would like this to serve as the startup screen for a game that has three options
(b) Implement an interactive version of the Perlin noise function. You can see Ken Perlin’s talk at http://www.noisemachine.com/talk1/; for pseudo-code and more explanation check out http://freespace.virgin.net/hugo.elias/models/m_perlin.htm. Start out by creating a 640 x 480 GLUT window to display the Perlin noise. We would like to be able to change the number of octaves, the zoom level, and the color map of the displayed noise. The starting number of octaves is 2. Set the initial zoom level so that there are about two periods of the displayed octave contained within the window. The noise level should be scaled to the range [0, 255]. Display the resulting noise using grayscale (assign red, green, and blue colors to be the noise level) (5 points). Pressing the lowercase
the color is displayed as (level, level, 255). To get a terrain-like texture, we map the noise
play around and give us three similar options with one being grayscale, second being sky with clouds, and the third being terrain. Also, feel free to implement the various parts (the random number generator, for example) in a different way than described on the reference
BMP file when the user presses the key (1 point). (10 points)