I need an OpenGL computer graphics exam answered for use as a study aid.
Some sample questions from the exam:
- Given the normal, n, to a polygon that is part of the wireframe of an object and a view vector, v, that points in the direction of view, what is the condition for polygon visibility?
- Write down the formula for the cross product of the two vectors u and v. Assume that the three orthogonal directions are x, y and z. That is, when we write u = (a, b, c) it is shorthand for (ax, by, cz).
- The OpenGL function that “maps” between a specified clipping window to the viewport is glOrtho(), which takes 6 arguments that correspond to “front and back” limits for each of the 3 dimensions. A briefer version of this exists when dealing in the simpler 2-D case and it is called _______.
- Given three points p = (0,1,2), q = (1,0,2) and r = (1,2,0) of a polygon compute a normal of
the plane that the points lie in.