This week, we learned about the basics of representing color. We also learned how scenes are illuminated as well as point, directional, and spot lighting. Finally, we studied Phong shading.
Color is a function of its wavelength represented by 3 colors and mixtures of those through addition or subtraction. Scenes are illuminated through direct and indirect lighting. When light interacts with a surface, it can scatter depending on the surface used. Diffuse reflectors have rough surfaces so light scatters in many directions (not view dependent). In specular reflection, it is glossy so it mostly reflects in one direction (view dependent). In addition, there is ambient lighting where an object receives or reflects ambient light and gives no look of depth. The color of the pixel depends on emissive, ambient, diffuse, and specular light which depends on the light and material color in various combinations sometimes using the Lambert Law where the intensity of the reflected light is related to the orientation or where you are looking from.
Directional light doesn't depend on light source position or attenuate with distance. Point light depends on light source position and attenuates with distance. Spot light depends on light source position and attenuates with distance and buy angle from the center direction.
The basic shading models are Flat, Gouraud , and Phong. In flat shading, a single light is calculated per face which results in mach bands or a gradient effect. Dithering can be used to introduce noise to create more calculated faces and a better picture. Gouraud shading is shading per vertex in the vertex shader then sent to the fragment shader. It sometimes creates triangles and boundaries when it should be smooth. Phong shading is shading per vertex or per pixel. Interpolate the normal across the surface and calculating final lighting per pixel. Which removes the artifacts from Gouraud shading.
Tuesday, December 3, 2019
Subscribe to:
Post Comments (Atom)
cst 499 week 8
This week, we finished writing the paper in order to do the best job possible even if it was a little bit late. Now that everything is done,...
-
Have you ever created an app before, either for Android or iPhone? How did it go? Do you have any ideas for apps that you could create ...
-
This week, we learned about debugging techniques. There are multiple ways to do this such as glass-box, black-box, testing edge conditions, ...
-
Microservices Microservices are used by companies to make their code more reusable by allowing engineers to combine ready made parts i...
No comments:
Post a Comment