Question: 1st Code Using OpenGL develop a C code that a) draws a point that moves clockwise slowly along a circle with a center at (0,0).

1st Code Using OpenGL develop a C code that a) draws a point that moves clockwise slowly along a circle with a center at (0,0). You may want to draw a circle first, and a point that moves on the circle with a different color. b) draws a 2D star inside the circle. -------------------------------------------------------------------------------

Need Answers with these 2 questions.

2nd Code Using the previous code modify to: a) Translate (move) the whole object ( the star, the circle and the point that moves around) along the x axis using the -> and <- keys on the keyboard b) Rotate the whole object around the z axis using the shift -> and shift <- keys on the keyboard. ---------------------------------------------------------------------------

3rd Code Using the previous code modify to: a) Move the Camera by keeping the object still ( using glLookaAt and pointing the camera to the center of the object all the time) around the x axis of the object ( the star, the circle and the point that moves around) using the up and down keys on the keyboard. b) Zoom in and Zoom out the object by decreasing the distance between the object and the camera using the computer mouse scroll wheel. (Needs to be in perspective projection)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!