/computerGraphics

computer graphic projects with openGL and C++

Primary LanguageC++

computerGraphics

Computer graphics projects with openGL and C++

Project1:

1. The window should close and the program should stop if the user presses the Q key on the keyboard.

2. The window should display the following shapes on white background:
a- A rectangle on the left which is drawn only with its borders in black.
b- A blue triangle on the right.

3. When the user clicks on the triangle, its color should change to a different color. And this should happen again and again as the user continues to click.

4. The user should be able to drag the rectangle around and place it in a new position with the mouse.

Project2:

1. Draw a spinning cube using OpenGL. Each face of the cube should be colored with different colors. Some faces should be colored with fixed color while some of them are colored with a mixture of colors.

2. The cube should rotate after a key from keyboard is pressed. The cube should rotate to right (d key), left (a key), up (w key) and down (s key) when the corresponding key is pressed. The user can change between orthogonal and perspective projection by pressing p key.

3. The program should also handle window reshape.

Project3:

1. Model will be similar to humanoid model, it will be three-dimensional (3D). Use 3D shapes cubes.

2. The model will be animated.

The character set:

l-L: left shoulder back-front
r-R: Right shoulder back-front
f-F: Left shoulder elbow back-front
g-G: Right shoulder elbow back-front
t-T: Right leg back-front
y-Y: Left leg back-front
h-H: Right leg elbow back-front
j-J: Left leg elbow back-front
e-E: Head back-front
k: save first posture
K: save second posture
n: start animation
N: stop animation
q: go back first posture
Q: reset everything
M: show menu
U: create file and load animation
b-B: right shoulder - bent to the side
i-I: left shoulder - bent to the side
p-p: right leg - bent to the side
o-O: left leg - bent to the side
v-V: head - bent to the side
x: Play a animation(you saved before)
3: Run animation stop
2: Run animation start