A graphical view of interactions between the moon and a rocket in space.
- Different interactions between the moon and a rocket in space.
- Written in C++
- All objects have lighting and materials.
- Runs on Visual Studio
-
Mouse Interactions
-
Keyboard Interactions
-
Arrow Keys
-
Number Keys
-
Menu Interactions
- Right button and Left button: Rotation in a particular axis.
- Middle button: The menu list will appear.
- Alphabet q is used for exiting the program.
- Right Key
- Rotation in x-y axis in clockwise direction
- Left Key
- Rotation in x-y axis in counterclockwise direction
- Up Key
- Rotation in z axis in counterclockwise direction
- Down Key
- Rotation in z axis in clockwise direction
- Stops the idle animation
- Starts the idle animation
- Changes the red color with lighting and materials
- Changes the white color with lighting and materials
- Changes the brass yellow color with lighting and materials
- Changes the lighting to white lighting
- Changes the lighting to colored lighting
-
The menu interaction occurs when the middle mouse button is clicked.
-
It consists of a question stating 'What would you like the program to do?'.
-
Upon clicking it, 3 options will appear.
-
Option 1: Start the animation
- display2() is called.
- A rocket starts to revolve around the moon.
-
Option 2: Stop the animation
- display1() is called.
- The parts of rocket and moon are suspended in the space.
-
Option 3: Exit
- Exits the application.
- Save the file called 'Project.cpp' and then click on Run and the output will be displayed.
- You can download the 'Project.exe' to view the output.
- Click on 'q' on the keyboard.
- Click on the 'Exit' option in the menu.
Programmer: Saee A. Gore