Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using dev c++ please provide the code change for every question please Modify on the program according to following, and observe the differences (if any)

using dev c++ please provide the code change for every question please

Modify on the program according to following, and observe the differences (if any) between each pair of transformations:

a)Translate the pyramid along the vector (15, 0, 0), then rotate it 30o about the x-axis, then rotate it 30o about the y-axis.

b)Rotate it 30o about the x-axis, then rotate it 30o about the y-axis, then translate the pyramid along the vector (15, 0, 0).

c)Translation of (8, 0, 0), then scaling (2, 3, 4). Followed by rotation 30o about the x-axis, then rotation 30o about the y-axis.

d)Scaling (2, 3, 4), then translation of (8, 0, 0). Followed by rotation 30o about the x-axis, then rotation 30o about the y-axis.

the program:

#include  #include  #include  int ScreenWindowWidth = 800; int ScreenWindowHeight = 600; int WorldWidth = 40; int WorldHeight = 30; int WorldDeep = 100; typedef GLfloat VertexArray[3]; //----------------------------------------------------------------- void DrawMesh(VertexArray *vertices, GLint *faces, GLint nFaces, GLint verticesPerFace) { int j, k, n; n = 0; for (j = 0; j                        

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

=+what kinds of policies and practices should be developed?

Answered: 1 week ago

Question

=+ Of the HR issues mentioned in the case,

Answered: 1 week ago