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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started