1 / 19

Shading Languages

Shading Languages. By Markus Kummerer. State of the Art Shading. Overview. RenderMan Interface Shape vs. Shading Types of Shaders Shading Language Examples Interactive Multi-Pass Shading. RenderMan Interface. Powerful set of primitive surface types Quadric surfaces Polygons

wells
Télécharger la présentation

Shading Languages

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. Shading Languages By Markus Kummerer

  2. State of the Art Shading

  3. Overview • RenderMan Interface • Shape vs. Shading • Types of Shaders • Shading Language • Examples • Interactive Multi-Pass Shading

  4. RenderMan Interface • Powerful set of primitive surface types • Quadric surfaces • Polygons • Parametric surfaces • Hierarchical modeling, geometry • Constructive solid geometry • Camera model • Generalized shading model

  5. Shape vs. Shading • Shape • Geometric configuration of objects • Shading • Calculates the appearance of an object in a scene under a set of light sources • Result defined by • Colors of the surface and the light source(s) • Position and orientation of the surface relative to the light • Roughness of the surface

  6. Shading Pipeline • Three basic parts of the shading process • Emission at the light source • Interaction of the light with the surface • Atmospheric effects between the surface and the viewpoint

  7. Types of Shaders • RenderMan Interface supports • Light source shaders • Surface shaders • Volume shaders • Transformation shaders • Displacement shaders • Imager shaders

  8. Light Source Shader • Calculates the intensity and color of light sent by the light source to a point on a surface

  9. Surface Shader • Determines the color of light reflecting from a point on a surface in a particular direction

  10. Volume Shader • Generalizes the idea of atmosphere affecting light passing through space between a surface and the eye

  11. Shading Language • Orthogonal definition • Rendering environment • Special data types • Uniform and varying variables • Integration constructs • Filtered map access • Function library

  12. Examples

  13. Example: Surface Shader

  14. Example: Surface Shader

  15. Example: Displacement Shader

  16. Interactive Programmable Shading • OpenGL acts as an assembly language for shader execution • Compiler is introduced between the application and the graphics library

  17. Interactive Programmable Shading • Results

  18. Conclusion • Shading in software • Common technique for production animation • Offers generalized shading models • Provides a highly flexible approach • But is not interactive... • Shading in hardware is needed for interactivity

  19. Hope you are delighted, too

More Related