Final Exam, CSCI 360, Fall 2020
- The weight for each question is given.
- Please answer each question thoughtfully and carefully.
- Please use a word processor to answer the questions.
- Please label your answers with the question number and part.
- Please answer each question thoughtfully and carefully. I expect your answers to demonstration participation in this class.
- You may use books, notes and other non-human references. You may not interact with any other person when answering these questions.
- Proper use of terminology will be graded.
- The test is due at the end of class.
- Submission instructions are at the end of the test.
- Submissions should be done through the D2L assignment folder Final exam.
- If you have problems submitting the test, please contact your instructor.
- If you have questions, please communicate with your instructor via email.
- The fragment shader has access to the variable
gl_FrontFacing
- What causes this variable to have the value of true?
- [3 points] Answer this at a conceptual level.
- [3 points] Answer this at a mathematical level.
- [2 points] How is the value of
gl_FrontFacing
impacted by the order of the vertexes of a triangle?
- [2 points] Name at least two WebGL calls that impact the value of
gl_FrontFacing
- Communicating with shaders
- [4 points] Name and describe two methods a front-end program can employ to communication values with WebGL shaders.
- [2 points] Explain the differences between these methods.
- [4 points] Explain when each of these methods would be used. Provide examples.
- Linear Interpolation
- [3 points] Describe the linear interpolation that occurs in the WebGL pipeline.
- [4 points] Describe how this LERP can be used to detect edges of triangles.
- [3 points] Describe how this LERP can be used to make objects created out of polygons appear to be constructed out of smooth curves.
- Triangles
- [2 points] Name two properties of triangles that makes them ideal for display in a graphics pipeline.
- [3 points] Select one of these properties and explain why it is important to possess that property in a graphics pipeline.
- [15 points] Rendering
- Describe the process that transforms triangles specified in modeling coordinates to pixels in the frame buffer. Discuss this in detail in terms of the WebGL pipeline, however make sure your discussion includes
- Various coordinate systems.
- Processes such as clipping, projection, lighting, ...
- Pipeline stages and shaders
- Hardware such as the CPU and GPU.
Submission Instructions
- Submit your test and the source code for the program to the appropriate D2L assignment folder Final by 2:30
- If you miss this deadline, you can submit your test by email to dbennett@edinboro.edu. Depending on the circumstances, there may be a 5% penalty per minute applied for email submissions.