Lab 2: Getting Started with OpenGL
CS 445: Computer Graphics, Fall 2014


Due Dates: 5pm, Tuesday, Sept 30

Assignment

In this lab, you are to create two solid geometric shapes (a Disk shape and one other shape of your choice), together with a wire frame version of one of these objects.

Goals

Note, if you are using your own computer, you need to make sure that you have the glew libraries installed. Also, if your computer does not run OpenGL 3.2 or later, you will either need to update your graphics card driver, or use a different version of the shader code. If you are not certain which version you are running, you can try using the OpenGL Extensions Viewer

Resources (Also see OpenGL section on links page)

Directions

Demonstrate your program in lab no later than 5pm on Tues, Sept 30. Before the demo, generate several images showing the disk and your other object either in separate images or together in one image. One of your images should show an object with the wireframe on top of the shaded. Zip together the images and your codeblocks project (please delete the bin and obj folders) and submit via WISE.

Creating More Complex Shapes

One generally does not generate complex organic models directly in openGL. Instead the models are either scanned (e.g. see The Stanford 3D Scanning Repository) or are modeled in programs such as Maya (and exported, e.g. to obj format). The ply and obj formats can then be read into your OpenGL program. One can find c++ libraries which will read ply and obj files, or you can write your own.


Dragon

Bunny

Buddha

Dog

Bust