Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

what is a peer Group? Importance?

Answered: 1 week ago

Question

2. Discuss various aspects of the training design process.

Answered: 1 week ago

Question

5. Discuss the key roles for training professionals.

Answered: 1 week ago