Question: C++ Program in opengl Create a solar system-like animation (based on cubes only) that contain: STAR: A central yellow cube (size = 7) that rotates
C++ Program in opengl
- Create a solar system-like animation (based on cubes only) that contain:
- STAR: A central yellow cube (size = 7) that rotates around its own center in all three axes (1 full cycle every 10 seconds)
- PLANET #1: A blue cube (size = 3, distant from star by 20 units) that rotates on itself (one cycle every second) and around the star (one cycle every 4 seconds)
- MOON #1: a light gray cube size = 1, distant from planet #1 by 6 units, that rotates around planet #1 every second
- PLANET #2: A red cube (size = 2.5, distant from start 45 units) that rotates on itself (one cycle every 1.5 seconds) and around the star (one cycle every 5 seconds)
- MOON #2a: a purple cube size = 1, distant from planet #2 by 7 units, that rotates around planet #2 every second
- MOON #2b: a cyan cube size = 0.5 distant from planet #2 by 9.5 units, that rotates around planet #2 every half a second
- The camera should be perspective projection and be placed so that the entire animation is visible on frame all the time
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
