Shading Languages - PowerPoint PPT Presentation

About This Presentation
Title:

Shading Languages

Description:

Calculates the appearance of an object in a scene ... Colors of the surface and the light source(s) ... 19 / 19. Markus Kummerer. Hope you are delighted, too ... – PowerPoint PPT presentation

Number of Views:418
Avg rating:3.0/5.0
Slides: 20
Provided by: antonlf
Category:

less

Transcript and Presenter's Notes

Title: Shading Languages


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
Write a Comment
User Comments (0)
About PowerShow.com