



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























Scene Graph
Refresher: OpenGL Matrix
Transformation Pipeline
1
tan ๐๐ค 2 ๐๐๐
0 0 0
0
1
tan ๐ 2 โ ๐๐๐
0 0
0 0
1 ๐๐๐
0 0 0 0 1
Matrix M = T * (R * S);
for (i=0; i<numTriangles; i++) {
Triangle t = MyObject->triangles[i]; glBegin(GL_TRIANGLES); for (j=0; j<3; j++) { Position p = t->vertex[j]->GetPosition(); Position newP = M * p; glVertex3d (newP.x, newP.y, newP.z); } glEnd();
}
Applying Composite Matrices with
OpenGL
computation for us.