Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a hierarchical model of the object in figure composed of four cylinders connected at the end. You have available the geometric primitive DrawCylinder (

Create a hierarchical model of the object in figure composed of four cylinders connected at the end.
You have available the geometric primitive DrawCylinder(float r, float h), which draws a cylinder of
radius r and height h, whose center is the origin and where the height is along the x axis. Write a
pseudo code that draws Figure 2 by moving from the position in Figure 1 to the position in Figure 2.
(Hint: use a chain of matrix multiplications)Figure 1.
Figure 2.
The other functions you may need are:
glRotate(angle, axisx, axisy, axisz)
glTranslate(dx,dy,dz)
glPushMatrix()
glPopMatrix()
image text in transcribed

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 Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions