1 / 25

Schedule Update

Schedule Update. GP 4 – Tesselation/Cg GDS 4 – Subdiv Surf. GP 5 – Object Modeling Lab: Mini-proj Setup. GDS 5 – Maya Modeling. MCG 6 – Intersections. GP 6 – Raytracing Lab: Mini-proj DUE. GDS 6/7 – Raytracing Lab: Your object. GP 7 – Texture Mapping.

jdefreitas
Download Presentation

Schedule Update

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Schedule Update GP 4 – Tesselation/CgGDS 4 – Subdiv Surf. GP 5 – Object ModelingLab: Mini-proj Setup GDS 5 – Maya Modeling MCG 6 – Intersections GP 6 – RaytracingLab: Mini-proj DUE GDS 6/7 – RaytracingLab: Your object GP 7 – Texture Mapping GDS 8/9 – Textures+ Non-realistic Texturing GP 8 – Viewing transforms GDS 10 – Camerasand Framing GP 9 – Real-Time G.I. GDS 11 – GlobalIllumination GP 10 – Hidden Surfaces GDS 12/13 – Lighting+ Non-real Lighting GDS 14 – Shadows+ Non-real Shadows

  2. Tesselation and Shading Comptuer Graphics ProgrammingR. Hoetzlein, 2011Department of Architecture and Media Technology

  3. When does the light equation get applied? I = N · L Lets assume the Light (L) is in a constant direction.

  4. Object Representation OpenGL uses Polygonal modeling.All objects are approximated by small polygons.

  5. Tesselation… Division of surface into polygons. OpenGL does not typically do this step for you..

  6. Rasterization… What color is each pixel? N pixels polygon We could calculate Phong reflectance model at each pixel.. eg. I = N · L Question: What is the surface normal at each pixel?

  7. What can we say about the surface normals on a flat surface or plane?

  8. Rasterization… What color is each pixel? N N N N N pixels polygon

  9. Flat Shading Using the face normal for each pixel is called flat shading.Every pixel gets the surface normal of the whole polygon. glShadeModel ( GL_FLAT );

  10. One solution… Increase tesselation… Uses a lot of polygons.To get correct images, polygons must be smaller than a pixel.

  11. Gouraud Shading Henri Gouraud (French), 1971“Continuous shading of curved surfaces” What if we interpolate the intensity across the polygons?

  12. Flat Shading Gouraud Shading Notice Mach effect at edges of polygons. Mach Bands are an optical illusion.Our eye notices discontinuous changes in intensity as a jump in brightness.

  13. Flat Shading First orderdiscontinuous Gouraud Shading Second orderdiscontinuous two polygons

  14. Lets try again…Correct lighting is based on the surface normal.

  15. What is the surface normal at this point? How about here?

  16. Gouraud Shading N ? Interpolating the intensity is incorrect, because we are basically guessing intensity instead of using a surface normal…

  17. A vertex connecting two or more faces has a discontinuous normal.

  18. Bui PhongPhong Interpolation.. (do not confuse with Phong Reflectance model)What we want to do is, interpolate the surface normal across polygons…

  19. Gouraud Shading Phong Shading two polygons

  20. Flat Shading Gouraud Shading Phong Shading

  21. Shading Models Flat Shading No interpolation. Each pixel uses surface normal of the whole polygon. Gouraud Shading Intensity interpolation. Each pixel interpolates the intensity of the lighting at the polygon centers.Phong Shading Surface normal interpolation. Each pixel interpolates the surface normal, and then computes illumination based on that normal.

  22. Performance Flat Shading How many different normals are there? Gouraud Shading Phong Shading

  23. About OpenGL Reflectance Model Gives an intensity at a point based on the light vector, normal vector, and other factors. Reflectance model determines how light moves. E.g. Lambert, Phong, BlinnShading Model Determines how to interpolate across polygonal surfaces to make them look smooth. E.g. Flat, Gouraud, Phong shading OpenGL implements the: Phong Reflectance Model AND Gouraud ShadingOpenGL does not do Phong Shading.

  24. Shading Models Coke Can Challenge: Which shading model should be used?

More Related