Reyes and Shader Pipeline

20
Reyes and Shader Pipeline Shuen-Huei Guan Digimax Inc. 2007/03/06

Transcript of Reyes and Shader Pipeline

Page 1: Reyes and Shader Pipeline

Reyes and Shader Pipeline

Shuen-Huei Guan Digimax Inc. 2007/03/06

Page 2: Reyes and Shader Pipeline

The Reyes rendering pipeline

Page 3: Reyes and Shader Pipeline

Reyes: generating ribs

l  Maya -- mtor --> .rib

Page 4: Reyes and Shader Pipeline

Reyes: Geometric Primitives

l  Geometric Primitives - Parametric

Quadrics - Polygons &

Polyhedra -  ...

Page 5: Reyes and Shader Pipeline

Reyes: Bounding & Dicing l  Bounding & Spliting l  Dicing

Page 6: Reyes and Shader Pipeline

Reyes: Bound-Split l  Bounding & Spliting -  viewing volume -  back-face culling

ex, for ambient occlusion Attribute “cull” “hidden” 0 -  to disable bouding of viewing volume/frustrum

l  Attribute “cull” “backfacing” 0 -  to disable back-face culling

Page 7: Reyes and Shader Pipeline

Reyes: Dicing l  Dicing -  micropolygons -  Shading Rate -  Bucket Size -  Maximum Grid Size

Page 8: Reyes and Shader Pipeline

Reyes: Dicing (cont'd) l  Dicing -  Dicing Camera -  Raster Oriented

ex, for ambient occlusion Attribute “dice” “rasterorient” 0 -  view-independent dicing

Page 9: Reyes and Shader Pipeline

After Bound-Split & Dicing l  Reyes -  Vast visual complexity -  Motion blur -  Speed and memory limitations

l  It seems bound-split & dicing is not enought!!! -  Bucketing -  Occlusion Culling

Page 10: Reyes and Shader Pipeline

Reyes: Shading l  Shading before Hiding l  Parallel Shading l  Antialiasing

Page 11: Reyes and Shader Pipeline

Reyes: Shading & Bounding(Hiding) l  Shading before Hiding -  Displacement Shader

Page 12: Reyes and Shader Pipeline

Reyes: Shading Antialising l  Antialiasing -  Supersampling -  Filtering

Page 13: Reyes and Shader Pipeline

RenderMan shader evaluation pipeline

Page 14: Reyes and Shader Pipeline

Shader Example l  shader of tb_ch_driver's

face l  Slim's Ensemble -  per-node attributes -  surface + displace +

volume + RIBBox + ...

Page 15: Reyes and Shader Pipeline

Shader Example: Slim Network

Page 16: Reyes and Shader Pipeline

RenderMan shader pipeline (review)

Page 17: Reyes and Shader Pipeline

Terms you should know (from satan)

l  Shading Rate l  Quantize/Quantization l  AOV ( Arbitrary Output Variable )/pass l  Motion Blur l  Shutter Angle l  Pixel Samples/Pixel Filter/Filter Width l  Raster Oriented(or not) l  Trace/Shadow Bias l  Samples

Page 18: Reyes and Shader Pipeline

Reyes VS. OpenGL

l  Comparing Reyes and OpenGL on a Stream Architecture

l  John D. Owens, Brucek Khailany, Brian Towles, and William J. Dally

l  2002 Eurographics/SIGGRAPH Workshop on Graphics Hardware.

Page 19: Reyes and Shader Pipeline

References l  Advanced RenderMan: Creating CGI for Motion Pictures -  Chapter 4, 6

l  RenderMan Documentation (on svn machine) l  http://en.wikipedia.org/wiki/Reyes_rendering l  Antialiasing 的理論 by hotball

http://www.csie.ntu.edu.tw/~r89004/hive/aatheory/page_1.html

Page 20: Reyes and Shader Pipeline

Following Reading l  Advanced RenderMan -  Chapter 3: Rib Spec -  Chapter 7: Intro to Shading Language -  Chapter 6.5: Rendering Artifacts

l  The RenderMan Shading Language Guide -  a book by look dev TD at Walt Disney Feature

Animation Studios. -  TBA: ~March 2007