Looking for CMPT 370 A - Computer Graphics (SP 2025) test answers and solutions? Browse our comprehensive collection of verified answers for CMPT 370 A - Computer Graphics (SP 2025) at learn.twu.ca.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Which is NOT one of the six types of logical input defined in APIs of GKS/PHIGS?
The following code will cause stack overflow problems as the recursive calls pile up. What function can be used to solve this problem?
var thetaLoc = gl.getUniformLocation(program, ”uTheta")
function render(){ gl.clear(gl.COLOR_BUFFER_BIT); uTheta += 0.1; gl.uniform1f(thetaLoc, uTheta); gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4); render();}
What is described by the following?
We render into the back buffer that is not displayed. Subsequently, there is a buffer swap between the back buffer and the front buffer. An image will be displayed from the front buffer.
What type of input element is used in the following code?
<div>speed 0 <input id="some_element" type="range" min="0" max="100" step="10" value="50" />100 </div>
/* event listener */document.getElementById("some_element").onchange = function() { delay = event.srcElement.value; };
Who invented the first mouse?
What is described by the following?
This function triggers a buffer swap. This executes a function after a specified number of milliseconds. If we set a 0 value for the second parameter, it will generate buffer swaps as fast as possible (but may cause stack overflow). This function is used for our rotating square example.
Which is NOT one of the three methods that identify objects on the display?
Which is the worst triangle to render?
The following shows an example of a swizzling operator. What will be the result of the following example?
vec4 a;a.xy = vex2(2.0, 3,0, 4,0, 5.0);
The Sierpinski Gasket starts with a triangle. It connects bisectors of sides and removes the central triangle. This same process repeats.
After four subdivisions, which triangles of the following will be rendered? (One subdivision is the original triangle (one triangle) itself.)