WebGl programming involves coding with __________ in the shaders -
ANSWER HTML
JavaScript
WebGL API
GLSL
The graphics pipeline involves a series of coordinate transformations, these are:
- ANSWER object/model ->
eye coordinates ->
clip coordinates ->
NDC (Normalized Device Coordinates) ->
window
What are the three primitives available in WebGL - ANSWER point
line
triangle
What are the three methods for drawing triangles? (Specified as the first
parameter in drawArrays().) - ANSWER triangles
triangle_strip
traingle_fan
A WebGL program must have two shaders. What are the names of these
shaders? - ANSWER Vertex Shader
Fragment Shader
As vertices leave the vertex shader, they must live within a normalized volume
to be rasterized. Define this volume. - ANSWER [-1, 1] (box) aka Clip
Coordinates
Name two projection methods. - ANSWER Orthogonal
Perspective
What is the name of the hidden surface removal algorithm used in HW 2? -
ANSWER Z-Buffer
, HW 2 acted on event driven input. Give an example of an event ________
The function that executes when an event occurs is called a callback or event
______________ - ANSWER mousedown/on-click
event handler/listener
In event mode graphics, a trigger generates an _______________ whose
__________ is put into an event queue. - ANSWER event
measure
In order to produce continuously rotating geometry, we have learned to send the
vertices to the GPU once and then continuously update the modelview matrix as
a uniform. Why is this better than simply rotating the geometry in the javascript
application (CPU)? - ANSWER GPU is faster at math & this frees up the CPU
What is the purpose of double buffering? - ANSWER prevent partial rendering
What are the names of the two buffers (double buffering) - ANSWER Front
Buffer
Back Buffer
What is the Equation for converting an interval with point t to an interval with
point u - ANSWER t - min u - min
----------- = -----------
max - min max - min
Given t = 1/2 in the interval [0, 1], what is the corresponding (ratio preserving)
u in the interval [1, 3] ? - ANSWER Create a interval for t
0--------t(1/2)--------1
Create an interval for u
1----------u----------3
This is the equation:
t - min u - min
----------- = -----------
max - min max - min
ANSWER HTML
JavaScript
WebGL API
GLSL
The graphics pipeline involves a series of coordinate transformations, these are:
- ANSWER object/model ->
eye coordinates ->
clip coordinates ->
NDC (Normalized Device Coordinates) ->
window
What are the three primitives available in WebGL - ANSWER point
line
triangle
What are the three methods for drawing triangles? (Specified as the first
parameter in drawArrays().) - ANSWER triangles
triangle_strip
traingle_fan
A WebGL program must have two shaders. What are the names of these
shaders? - ANSWER Vertex Shader
Fragment Shader
As vertices leave the vertex shader, they must live within a normalized volume
to be rasterized. Define this volume. - ANSWER [-1, 1] (box) aka Clip
Coordinates
Name two projection methods. - ANSWER Orthogonal
Perspective
What is the name of the hidden surface removal algorithm used in HW 2? -
ANSWER Z-Buffer
, HW 2 acted on event driven input. Give an example of an event ________
The function that executes when an event occurs is called a callback or event
______________ - ANSWER mousedown/on-click
event handler/listener
In event mode graphics, a trigger generates an _______________ whose
__________ is put into an event queue. - ANSWER event
measure
In order to produce continuously rotating geometry, we have learned to send the
vertices to the GPU once and then continuously update the modelview matrix as
a uniform. Why is this better than simply rotating the geometry in the javascript
application (CPU)? - ANSWER GPU is faster at math & this frees up the CPU
What is the purpose of double buffering? - ANSWER prevent partial rendering
What are the names of the two buffers (double buffering) - ANSWER Front
Buffer
Back Buffer
What is the Equation for converting an interval with point t to an interval with
point u - ANSWER t - min u - min
----------- = -----------
max - min max - min
Given t = 1/2 in the interval [0, 1], what is the corresponding (ratio preserving)
u in the interval [1, 3] ? - ANSWER Create a interval for t
0--------t(1/2)--------1
Create an interval for u
1----------u----------3
This is the equation:
t - min u - min
----------- = -----------
max - min max - min