Question
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
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 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
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