Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program using OpenGL to create a 2D robot. The body parts should be rotatable. Your program should allow users to select and rotate

image text in transcribedWrite a program using OpenGL to create a 2D robot. The body parts should be rotatable. Your program should allow users to select and rotate body parts. Please run it and get the feel of the work you should deliver.

1. Requirements The robot must have at least 16 body parts, as shown in Figure (A). The relationships of these body parts are shown in Figure (B). Figure (A) Figure (B)

1.1 Transformation: You program must correctly control the rotations of the 16 body parts (5 points for each body part). Note that the coordinates of a child part should be defined in the coordinate system of its parent, as shown in (B).

1.2 Body Part Selection: You program must allow users to select and rotate a particular body part. For example, you may use a key on the keyboard to cycle through the indices of body parts, and then use another key for rotation.

Head Neck Right Right Right Hand ForarmArm Left Arm Forarm Hand Left Left Upper Body Lower Body Left Leg Right Foot Figure (A) Figure (B) Head Neck Right Right Right Hand ForarmArm Left Arm Forarm Hand Left Left Upper Body Lower Body Left Leg Right Foot Figure (A) Figure (B)

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

Data Science For Dummies

Authors: Lillian Pierson ,Jake Porway

2nd Edition

1119327636, 978-1119327639

More Books

Students also viewed these Databases questions

Question

Presentation Aids Practicing Your Speech?

Answered: 1 week ago