Shared Flashcard Set

Details

opengl final
fdsa
36
Aerospace Engineering
8th Grade
09/24/2009

Additional Aerospace Engineering Flashcards

 


 

Cards

Term
What graphics language was the precursor to OpenGL?
Definition
Iris GL
Term
To add opengl to your project, what DLL and headers do you have to add to make open gl work.
Definition
#include
// do not use this
#pragma comment(lib, "opengl32.lib");
Term
What version does this give you of OpenGL?
Definition
version 1.1
Adding gltools, which automagically adds GLee, gives you an updated version of OpenGL. (3.2?)
Term
What is the difference between OpenGL specification and/or OpenGL implementation ?
Definition
Specification is created by the archiecture review board, this includes C++, java, etc. They set the standards for OpenGL.

Vendors then, implement this specification to create drivers, NVIDIA, ATI, AMD, INTEL, SGI.

Term
What are the four buffers we can render to in OpenGL
Definition
Color, Depth, Stencil, Accumulation buffer
Term
What are the coordinate system in Open GL? Right or LEFT?
Definition
-Right Handed
y+ goes up
x+ goes right
z+ comes out the screen toward you
Term
What are the projections in Open GL?
Definition
Orthographic - 2D
Perspective - 3D
Term
What are the four matrix modes?
Definition
Color, projection, texture, modelview
Term
Which matrix moves your models and lights around?
Definition
models and lights are moved by modelview.
Term
What are the three types of light
Definition
Ambient, Diffuse, and specular
Term
What two ways can polygons be wound?
Definition
CCW and CW
OGL by default is CCW
Term
What are the 7 different type of primitives
Definition
GL_POINTS
GL_LINES
GL_LINE_LOOP
GL_LINE_STRIP
GL_TRIANGLES
GL_TRIANGLE_FAN
GL_TRIANGLE_STRIP
Term
What are the least amount of lights that opengl must support?
Definition
eight 8
Term
What are the two basic non-mipmap texture filter mode
Definition
linear and nearest
Term
Given a texture size, how many mipmap levels?
Definition
if its 512, its how many powers of 2:
2^0, 2^1, 2^2, 2^3, etc
1,2,4,8,16,32,64,128,256,512
Term
How much more memory does mipmapping take?
Definition
1/3 or 33% more.
Term
what is the best place to store static geometry?
Definition
vertex buffer objects
VBO - because it is stored into video card memory already
glBufferData - sends it to the video card
Term
Dynamic storage is a debate with:
Definition
indexed vertex/draw array
IVA or VBO
glDrawArrays - sends it to the video card
Term
What are some of the things you do with multi-texturing?
Definition
Bump mapping, shadow map, your mom
Term
What can you do with blending?
Definition
Anti-aliasing, transparency
Term
What can you do with stencil?
Definition
Using the stencil buffer, you can cut out an image to only draw a certain portion, shadows, flash light effect.
Term
What are the three fog equations? And draw me a graph of each one.
Definition
Linear, Exponential, and Exponential^2
Term
Tell me two advantages of texture compression.
Definition
Load faster and saves video card memory. Does not look better!
2 disadvantages = your lose color precision and alpha precision
Term
How many dimensions do you need for texture cube maps?
Definition
3 , SRT or XYZ
Term
Uniforms, how do you set a uniform in shaders?
Definition
glGetUniformLocation
glUniform
Term
what is the required output of vertex program (shader) ?
Definition
gl_Position ( normally equals gl_ModelViewProjectionMatrix * gl_Vertex )
Term
what is the required output of fragment program (shader) ?
Definition
gl_Fragcolor
Term
Why do we like point sprites?
Definition
Cheap, Single point, less geometry, no text coords, or normals, no matrix monkey business
Term
OpenGL ES, what are some kind of things we got rid of?
Definition
NAME A COUPLE. quads, shaders, accumulation buffer, color matrix, can't use doubles.
Term
What did we add to OpenGL ES?
Definition
Point sprites, bytes to use coordinates,
Term
What are some of things to think about when coding on a handheld?
Definition
Memory, slower CPU cause of less power consumption.
Term
(worth 4 questions) Draw and label the OpenGL transformation pipeline
Definition
//step 1
transformed eye coordinates = vertex data * modelview matrix
//step 2
clip coordinates = transformed eye coordinates * projection matrix
//step 3
normalized device coordinates = clip coordinates / w coordinate
//step 4
Rasterization / viewport transformation = normalized device coordinates <3
//step 5
window coordinates
Term
What is a texture unit.
Definition
Its a layer. GL_TEXTURE0, GL_TEXTURE1, etc
Term
Texture target
Definition
1d, 2d, 3d, cube map
Term
Stenciling is done when?
Definition
end of Rasterization
Term
when drawing vertexes
Definition

 

glDrawArrays - submits the batch for execution IDA
glBufferData - submits the batch for execution VBOs,

IVA, IDA - glDrawElements

Supporting users have an ad free experience!