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
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started