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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!