Project 6: Action! (Algo)
You can find the handout for this project here. Please skim the handout before your Algo Section!
You may look through the questions below before your section, but we will work through each question together, so make sure to attend section and participate to get full credit!
Please read the project handout before going to algo section and working on these questions!
Camera Rotation
How would you compute the matrix for a rotation of 90 degrees about the axis
Once you have an idea of what to do, we recommend working through the math as a group!
Shader Uniforms
Given a texture object of m_tex1
and a shader object m_shader
, please write pseudocode to set m_tex1
to a uniform variable declared as uniform sampler2D texture1
contained in m_shader
's source code. Assume nothing about the current state.
Not every answer will be identical, so discuss your thought process as a group, and be ready to share!
Textures, Renderbuffers, Framebuffers Oh My!
Concept
For a framebuffer with color and depth attachments, please draw a schematic/diagram of the framebuffer on the whiteboard. Make sure to indicate which attachments are textures and which are renderbuffers, and be prepared to explain to your TA. Assume the usage of the framebuffer will be to draw a scene with a grayscale filter applied.
Functional Understanding
glTexImage2D
With your group, explain the difference between internal format
and format
in the call glTexImage2D
.
glTexParameteri
Now, discuss the difference between using GL_NEAREST
and GL_LINEAR
when setting magnification and minification filters in glTexParameteri
. Explain how these two methods might result in different output colors when sampling from an image.
Realtime vs. Ray
Recursive Reflections
Why do you think we are not implementing recursive reflections in this assignment? There are many correct answers here! Discuss with your group, and consider the limitations of OpenGL in comparison to our earlier assignments.
Differences
Apart from recursive reflections, what are the advantages to using offline rendering as opposed to realtime rendering? What are the advantages to using realtime rendering as opposed to offline? Talk through some advantages of each side and share them with your TA.
Submission
Algo Sections are graded on attendance and participation, so make sure the TAs know you're there!