CG Class 9, Wed 2018-09-26
Table of contents
1 Today's iclicker questions
-
What does this line do:
gl.bindBuffer( gl.ARRAY_BUFFER, vBuffer );
- Create this buffer.
- Enable this buffer so that the shaders will use it.
- Get the address of variable vBuffer.
- Prevent this buffer from being modified.
- Specify that this buffer will be the object of future buffer operations.
-
What does this line do:
var vBuffer = gl.createBuffer();
- Create this buffer.
- Enable this buffer so that the shaders will use it.
- Get the address of variable vBuffer.
- Prevent this buffer from being modified.
- Specify that this buffer will be the object of future buffer operations.
-
How does gl.drawArrays know when the vertices it's drawing in 3D?
- It's specified as one of the arguments in gl.drawArrays.
- It's specified as one of the arguments in gl.bufferData.
- It's specified as one of the arguments in gl.vertexAttribPointer.
- It's specified as one of the arguments in gl.getAttribLocation.
- It's specified as one of the arguments in gl.enableVertexAttribArray.
-
How does gl.drawArrays know when the color values are floats instead of ints?
- It's specified as one of the arguments in gl.drawArrays.
- It's specified as one of the arguments in gl.bufferData.
- It's specified as one of the arguments in gl.vertexAttribPointer.
- It's specified as one of the arguments in gl.getAttribLocation.
- It's specified as one of the arguments in gl.enableVertexAttribArray.
-
How does gl.drawArrays know how many triangles are in a triangle strip?
- It's specified as one of the arguments in gl.drawArrays.
- It's specified as one of the arguments in gl.bufferData.
- It's specified as one of the arguments in gl.vertexAttribPointer.
- It's specified as one of the arguments in gl.getAttribLocation.
- It's specified as one of the arguments in gl.enableVertexAttribArray.
-
Normalize this vector: (8,-6,0).
- (3, 4, 5).
- (3/5, -4/5, 0).
- (4/5, -3/5, 0).
- (4/5, 3/5, 0).
- (8, -6, 10).
-
Find a normal vector to the plane through the points (1,0,0), (1,1,0), (1,0,1).
- (0, -1, 0)
- (0, 1, 0)
- (1, 0, 0)
- (1, 1, 0)
- (3, 2, 2)
-
Which of these curved surface equation types makes it easy to generate points on the surface?
- explicit
- explicit and implicit
- explicit and parametric
- implicit
- parametric
-
Which of these curved surface equation types makes it easy to test whether a point is on the surface?
- explicit
- explicit and implicit
- explicit and parametric
- implicit
- parametric
-
What type of equation is this: \(x^2+y^2+z^2=1\)
- explicit
- explicit and implicit
- explicit and parametric
- implicit
- parametric
-
About the next few questions:
- The next few questions will work with 3D points like \(p=\begin{pmatrix}1\\2\\3\end{pmatrix}\).
- I'll also use matrices like \(M=\begin{pmatrix}2&0&0\\0&2&0\\0&0&2\end{pmatrix}\).
- We can transform points thus: \(q=Mp\). This gives \(q=\begin{pmatrix}2\\4\\6\end{pmatrix}\).
- Common types of transformations are rotation, translation, scaling, and perspective or projection.
- I haven't yet discussed the following topics. This is to see what you already know. I'll let you correct your answers.
The above matrix is what type of transformation:
- identity
- perspective
- rotation
- scaling
- translation
-
\(M=\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\end{pmatrix}\) is what type of transformation?
- identity
- perspective
- rotation
- scaling
- translation
-
\(M=\begin{pmatrix}.6&.8&0\\-.8&.6&0\\0&0&1\end{pmatrix}\) is what type of transformation?
- identity
- perspective
- rotation
- scaling
- translation