shading languages

Download Shading Languages

Post on 25-Feb-2016

93 views

Category:

Documents

1 download

Embed Size (px)

DESCRIPTION

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 - PowerPoint PPT Presentation

TRANSCRIPT

  • Shading LanguagesBy Markus Kummerer

    Markus Kummerer

    State of the Art Shading

    Markus Kummerer

    OverviewRenderMan InterfaceShape vs. ShadingTypes of ShadersShading LanguageExamplesInteractive Multi-Pass Shading

    Markus Kummerer

    RenderMan InterfacePowerful set of primitive surface typesQuadric surfacesPolygonsParametric surfacesHierarchical modeling, geometryConstructive solid geometryCamera modelGeneralized shading model

    Markus Kummerer

    Shape vs. ShadingShapeGeometric configuration of objectsShadingCalculates the appearance of an object in a scene under a set of light sourcesResult defined byColors of the surface and the light source(s)Position and orientation of the surface relative to the lightRoughness of the surface

    Markus Kummerer

    Shading PipelineThree basic parts of the shading processEmission at the light sourceInteraction of the light with the surfaceAtmospheric effects between the surface and the viewpoint

    Markus Kummerer

    Types of ShadersRenderMan Interface supportsLight source shadersSurface shadersVolume shadersTransformation shadersDisplacement shadersImager shaders

    Markus Kummerer

    Light Source ShaderCalculates the intensity and color of light sent by the light source to a point on a surface

    Markus Kummerer

    Surface ShaderDetermines the color of light reflecting from a point on a surface in a particular direction

    Markus Kummerer

    Volume ShaderGeneralizes the idea of atmosphere affecting light passing through space between a surface and the eye

    Markus Kummerer

    Shading LanguageOrthogonal definitionRendering environmentSpecial data typesUniform and varying variablesIntegration constructsFiltered map accessFunction library

    Markus Kummerer

    Examples

    Markus Kummerer

    Example: Surface Shader

    Markus Kummerer

    Example: Surface Shader

    Markus Kummerer

    Example: Displacement Shader

    Markus Kummerer

    Interactive Programmable ShadingOpenGL acts as an assembly language for shader executionCompiler is introduced between the application and the graphics library

    Markus Kummerer

    Interactive Programmable ShadingResults

    Markus Kummerer

    ConclusionShading in softwareCommon technique for production animationOffers generalized shading modelsProvides a highly flexible approachBut is not interactive...Shading in hardware is needed for interactivity

    Markus Kummerer

    Hope you are delighted, too