Homework 4
Short Description:
Move your OpenGL program to modern OpenGL and add rotations.
This assignment is worth 30 points.
Goals
When you finish this homework, you should have
- Employed vertex array objects, buffers and shaders in OpenGL
- Rotated an object using shaders.
Formal Description
Implement the display of your fractal in C/C++ using the OpenGL library. For this program you may not use the following OpenGL commands:
- glBegin/glEnd
- glVertex*
- glColor*
You do not need to provide animation in this version, and should start with your fractal at a preset depth. You select the depth to provide an interesting level of detail.
Your program should support the following key presses
- R - draw the figure in red.
- G - draw the figure in green
- B - draw the figure in blue
- b - draw the figure in black.
- q - quit, exit the program
- r - reset, the rotation angles should be reset to 0, and the color to black.
- x - rotate about the x axis by 10°
- y - rotate about the y axis by 10°
- z - rotate about the z axis by 10°
Discussion
- Feel free to add additional "cool" features, be sure to document these in your README.
- Your program must use the vertex shader to perform the actual rotation.
- You may "cheat" on colors, and use a uniform variable to generate the colors in the shader. On the other hand, you may build a color buffer and create a rainbow effect, perhaps based upon the age of the vertex. Or even both!
Required Files
Your code, a Makefile, and a README file.
Submission
You should email tar file as an attachment to a message to danbennett360@gmail.com.