Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
15 Cards in this Set
- Front
- Back
What is Forward Rendering?
|
Forward Rendering, also known as Direct Rendering, will render out final pixel colors
|
|
Benefits and drawbacks of Forward Rendering?
|
Benefit:
-- Geometry is typically transformed only once Drawbacks: --Hardware limit on number of lights (main reason) --Complex shaders due to differing types of materials and effects --Shadow Maps of all lights must be loaded --High cost overdraw |
|
What is Multi-pass Forward Rendering?
|
-->For each light in the scene
-->For each mesh in range of the light -->Render mesh with just current light applied -->Additive blending will combine results of final image |
|
Benefits of Multi-Pass Forward Rendering?
|
--No hard limit on the number of lights since each light is rendered separately
--Shaders can be simpler since we will have one shader for each type of light --Can/should/possibly is easier to cull lights since if geometry being rendered is not in the bound of the current light, don't render |
|
Drawbacks of Multi-Pass Forward Rendering?
|
Repeated Rendering work
--Vertex shaders for rendered geometry has to run for each light. --Texture filtering work may be repeated --Possible increase in cache misses Worst case number of render passes --NumberOfObjects * NumberOfLights High cost for overdraw --A pixel can be rendered multiple times Increased context switching --We either render all objects for each light, preventing us from rendering similar objects together, or we process each light for each object causing us to switch shaders and light parameters repeatedly |
|
What is Deferred Shading?
|
Broken into 2 stages, the geometry stage and the lighting stage.
Needs: depths, diffuse color, normal color & specular material |
|
Benefits of Deferred Shading?
|
--No hard limit on number of lights
--Reduced cost of overdraw --overdraw will only happen during geometry stage, which is a relatively cheap stage compared to lighting --Simplified shaders --Geometry is typically transformed only once --Worst case number of passes = number object + number of lights |
|
Drawbacks of Deferred Shading?
|
--Memory footprint
--Precision loss --how to pack an XYZ value where each component is a 32 bit float into one 32 bit location? --Additional data packing and unpacking costs --Multi-sample anti-aliasing not well supported --Transparency does not work in deferred |
|
How do we pick if the Z-axis of the Deferred Shader should be positive or negative?
|
Move all the lighting to happen in view space as though the camera was the origin. A negative Z would then represent a backface, which we would not be rendering
|
|
What are the three reasons we do not use Object Space Maps?
|
1. They cannot reuse texture space
2. They cannot support texture mirroring 3. Poor support for deformable geometry |
|
What is the difference between a Bump map and a Normal map?
|
Bump maps use a height map to define surface properties, while normal maps use the normals of the object.
|
|
In Tangent Space, where is the origin located in relation to an object?
|
In Tangent Space, the origin is oriented with a specific surface on the object.
|
|
In regards to Tangent Space, what is a TBN matrix?
|
The TBN matrix is a 3x3 matrix that stores a Tangent, Bitangent, and Normal. The Tangent and Bitangent are vectors that are perpendicular to themselves, and to the Normal.
|
|
How do we calculate our TBN matrix?
|
- Transform our input normal by our world matrix and store in TBN[2].
- Transform our input tangent by our world matrix and store in TBN[0]. - Cross our new normal and tangent to create out bitangent, store in TBN[1]. |
|
What is Ambient Occlusion Mapping?
|
It is a technique that provides a texture map that more accurately represents how bouncing rays of lights will likely hit a certain location.
|