Usetutoringspotscode to get 8% OFF on your first order!

  • time icon24/7 online - support@tutoringspots.com
  • phone icon1-316-444-1378 or 44-141-628-6690
  • login iconLogin

Assignment 3

1)
Create an OpenGL Application with a window that has a title of (Ghalia) and of size 700×500
Change the background color to anything other than black or white
Draw an abstraction of Palm trees, beach, sand and sun.
Specify the colors of your different objects

2)

Identify two main objects to be the objects of interest in your program.  Which is the palm tree and water of the beach.

Model Activation:  
The user would press a key to activate a model such that the following transformations would be only applied to the active model
 
1:  Palm tree active
2: Water active
3: both models active.

Transformations:
Implement the following transformations. Note, these transformations would be only applied to the active model based on the selection from previous step. Add keyboard interaction for the following keys:

Arrow up: translate along the positive y axis
Arrow down: translate along the negative y axis
Arrow right: translate along the positive x axis
Arrow left: translate along the negative x axis
Arrow up and SHIFT : translate along the negative z axis
Arrow down and SHIFT : translate along the positive z axis
x or X : rotate around the x axis with 10 degrees
y or Y : rotate around the y axis with 10 degrees
z or Z : rotate around the z axis with 10 degrees
r or R: to reset the active object(s) to its initial position

Animation
Implement animation of your choice on the active model(s).

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes