Sale!

Computer Animation and Gaming Assignment 5

$30.00

Category:
5/5 - (2 votes)

CS6323 Computer Animation and Gaming
Assignment 5 (Grade: 10 Points)
Implement Forward Kinematics
Write a program to animate a linkage with 3 joints and 9 degree of freedoms. Each bone is associated
with 3 DOF, i.e. the rotation angles along y, z, x axis, respectively.
• For any 3 DOF bone, use the rotations in the following order: y-axis, z-axis, x-axis. The initial
pose vector for each bone is (?
?
, ?
?
, ?
?) = (0,0,0), with all the numbers in degrees.
• Each bone is model as a stretched cube. The four cube are of the following dimension defined in
their local space, i.e. [range of x]*[range of y]*[range of z]:
o Green: [-0.5, 0.5]*[0, 1]*[-0.5, 0.5],
o Blue: [-0.25, 0.25]*[0, 4]*[-0.25, 0.25],
o Pink: [-0.25, 0.25]*[0, 3]*[-0.25, 0.25],
o Red: [-0.25, 0.25]*[0, 2]*[-0.25, 0.25]
In the starting code, the green cube is already defined in the model class. Use the corresponding
colors to render these four bones. The linkage should be straight up initially as shown in the
following figure: (Grade: 3 points)
• Support interactive control of the 9 DOFs. Here are two example poses to check your result:
(Grade: 6 points)
o If we set the pose vector (?????
?
, ?????
?
, ?????
?
, ?????
?
, ?????
?
, ?????
?
, ????
?
, ????
?
, ????
?
) to be
(0, 30, 0, 0, 30, 0, 0, 30, 0), with all the numbers in degrees, we get the following result:
o If we set the pose vector (?????
?
, ?????
?
, ?????
?
, ?????
?
, ?????
?
, ?????
?
, ????
?
, ????
?
, ????
?
) to be
(0, -90, 0, 90, 90, 0, 0, 90, 0), with all the numbers in degrees, we get the following
result:
• Have a reset button to reset the linkage to the initial state. (Grade: 1 point)
In the starting code, there are a green reference plane with center at (0.0, -5.0, 0.0) and the green cube as
the base of the linkage at the center of the plane as shown in the following figure:

PlaceholderComputer Animation and Gaming Assignment 5
$30.00
Open chat
Need help?
Hello
Can we help?