1/29
Looks like no tags are added yet.
Which property defines spotlight cutoff?
Group of answer choices
GL_SPOT_DIRECTION
GL_POSITION
GL_AMBIENT
GL_SPOT_CUTOFF
GL_SPOT_CUTOFF*
Which variable stores rotation in the triangle animation sample?
Group of answer choices
angle
value
initTriangle
VBOid
angle*
glRotatef(angle,0,0,1) rotates the triangle around which axis?
Group of answer choices
y
w
x
z
z*
OpenGL lighting includes material, light, and ____ lighting properties.
Group of answer choices
window
global
texture
buffer
global*
Which function resets the current matrix to identity?
Group of answer choices
glPopMatrix()
glLoadIdentity()
glViewport()
glPushMatrix()
glLoadIdentity()*
Which query retrieves the maximum supported light count?
Group of answer choices
glEnable(GL_MAX_LIGHTS)
glGetIntegerv(GL_MAX_LIGHTS,&n)
glLightfv(GL_MAX_LIGHTS)
glGetString(GL_LIGHTS)
glGetIntegerv(GL_MAX_LIGHTS,&n)*
Which function rotates an object around a specified axis?
Group of answer choices
glViewport()
glScale()
glTranslate()
glRotate()
glRotate()*
Which function moves an object along x, y, and z?
Group of answer choices
glScale()
glTranslate()
glFrustum()
glRotate()
glTranslate()*
Which function manually defines a perspective frustum?
Group of answer choices
glViewport()
glOrtho()
gluLookAt()
glFrustum()
glFrustum()*
Which function creates perspective projection from fovy and aspect?
Group of answer choices
gluPerspective()
glViewport()
glOrtho()
gluOrtho2D()
gluPerspective()*
A shininess value near 0 represents a very ____ surface.
Group of answer choices
transparent
shiny
rough
emissive
rough*
Which function restores the last saved matrix?
Group of answer choices
glPushMatrix()
glRotatef()
glPopMatrix()
glLoadIdentity()
glPopMatrix()*
Which material property is the object's base color?
Group of answer choices
GL_AMBIENT
GL_DIFFUSE
GL_SHININESS
GL_SPECULAR
GL_DIFFUSE*
OpenGL supports local point and ____ light sources.
Group of answer choices
bitmap
material
orthographic
infinite directional
infinite directional*
Which function is the simplified 2D orthographic projection?
Group of answer choices
gluPerspective()
gluOrtho2D()
glFrustum()
gluLookAt()
gluOrtho2D()*
glTranslatef(0,-0.5,0) moves the triangle along which axis?
Group of answer choices
x
y
w
z
y*
Which material property represents glow?
Group of answer choices
GL_AMBIENT
GL_EMISSION
GL_SPECULAR
GL_DIFFUSE
GL_EMISSION*
Which call enables one specific light?
Group of answer choices
glEnable(GL_LIGHTING_ONLY)
glMaterialfv(GL_LIGHTn)
glLightfv(GL_ENABLE)
glEnable(GL_LIGHTn)
glEnable(GL_LIGHTn)
Which matrix mode handles modeling and viewing transformations?
Group of answer choices
GL_PROJECTION
GL_MODELVIEW
GL_TEXTURE_2D
GL_DEPTH
GL_MODELVIEW*
Which function selects the current matrix stack?
Group of answer choices
glViewport()
glMatrixMode()
glLoadIdentity()
glPushMatrix()
glMatrixMode()*
Which constant names the first OpenGL light?
Group of answer choices
GL_LIGHTING
GL_LIGHT1
GL_AMBIENT
GL_LIGHT0
GL_LIGHT0*
Which coordinate controls whether a light is local or directional?
Group of answer choices
y
z
w
x
w*
Which material property is the low-light color?
Group of answer choices
GL_SHININESS
GL_SPECULAR
GL_AMBIENT
GL_DIFFUSE
GL_AMBIENT*
Lighting simulates how objects ____ light.
Group of answer choices
index
reflect
store
compile
reflect*
Which function defines the drawable window region?
Group of answer choices
glViewport()
glScale()
glMatrixMode()
glOrtho()
glViewport()*
Which function is the simplified 2D orthographic projection?
Group of answer choices
gluLookAt()
gluPerspective()
glFrustum()
gluOrtho2D()
gluOrtho2D()*
A realistic 3D scene needs distant objects to appear smaller. Choose the projection.
Group of answer choices
Color-index
Orthographic
Perspective
Bitmap
Perspective*
Which call globally turns lighting calculations on?
Group of answer choices
glLightfv(GL_LIGHTING)
glEnable(GL_DEPTH_TEST)
glEnable(GL_LIGHTING)
glEnable(GL_LIGHT0)
glEnable(GL_LIGHTING)*
Which source datatype is used for the loaded image bytes?
Group of answer choices
GL_FLOAT
GL_UNSIGNED_BYTE
GL_INT
GL_DOUBLE
GL_UNSIGNED_BYTE*
Which sequence correctly creates a texture from an image?
Group of answer choices
glGenerateMipmap -> glGenTextures -> glBindBuffer -> glMaterialfv
glGenTextures -> glBindTexture -> stbi_load -> glTexImage2D -> glGenerateMipmap
stbi_image_free -> glGenTextures -> glDrawArrays -> glTexImage2D
glTexCoordPointer -> glDeleteBuffers -> stbi_load -> glViewport
glGenTextures -> glBindTexture -> stbi_load -> glTexImage2D -> glGenerateMipmap*