Question: 6. (Programming Question) a. A rectangular object with size 1x1x2 is placed on the z-x plane, with the center of the base at the origin.
6. (Programming Question) a. A rectangular object with size 1x1x2 is placed on the z-x plane, with the center of the base at the origin. Write a WebGL program, using proper transformations, to generate this object and rotate it around y-axis. b. Connect another rectangular object with size 1x1x1 to the first object by a hinge as shown in the diagram, such that the second object can rotate around the hinge up-and-down Write a WebGL program, using proper transformations, to generate both objects, and keep the first object stationary but rotate the second object around the hinge between -45o and +45o back and forth. x z y c. Write another WebGL program to generate both objects, and rotate the first object around the y-axis, at the same time, rotate the second object around the hinge between -45o and +45o back and forth.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
