Docsity

graphics drawing a cube using opengl, Study Guides, Projects, Research of Engineering Drawing and Graphics

Toggle sidebar
bg1
CMP(N)205 - Graphics Lab 3
2017
Lab #3
1/1
Cairo University
Faculty of Engineering
Computer Engineering Department
Fall 2017
Computer Graphics Lab3
Transformations
Requirement:
1. Draw 2 cubes. Let the first one rotate around its center and let the second one rotate
around its center and also rotate around the first cube. Let the whole scene move to the
right or left by using the right or left arrow.
2. Implement a simple collision detection mechanism. Draw 2 cubes, one is stationary and
the other one can be moved by the keyboard arrows. When the moving cube collides
with the stationary, it should stop moving in the direction that will lead to further collision,
but it can be moved in other directions. You should handle collisions in all directions (i.e.
x, y and z).

Partial preview of the text

Download graphics drawing a cube using opengl and more Study Guides, Projects, Research Engineering Drawing and Graphics in PDF only on Docsity!

CMP(N) 205 - Graphics Lab 3 2017

Lab # 3 1 / 1 Cairo University Faculty of Engineering Computer Engineering Department Fall 20 17 CMP (N) 205

Computer Graphics Lab 3

Transformations

Requirement:

  1. Draw 2 cubes. Let the first one rotate around its center and let the second one rotate around its center and also rotate around the first cube. Let the whole scene move to the right or left by using the right or left arrow.
  2. Implement a simple collision detection mechanism. Draw 2 cubes, one is stationary and the other one can be moved by the keyboard arrows. When the moving cube collides with the stationary, it should stop moving in the direction that will lead to further collision, but it can be moved in other directions. You should handle collisions in all directions (i.e. x, y and z).