In this series, we will be exploring the technical side of rendering with RenderMan21, and explaining through a educational and "why and how does it work" approach to the lessons. There will be explainer diagrams and renders, but we also dive into sessions in Maya to show the lessons in action!Each course consists of 10 classes of roughly 30-45min each video tutorial.
If you have trouble viewing the videos from this page, go directly to the Course channel on Vimeo here: https://vimeo.com/channels/1198001
Class 08 Patterns in C++ Part 1
We now jump into C++ Patterns! Since there is a lot of overhead for writing and compiling C++ patterns, we start off with the simplest possible example by just setting a color that is connectable upstream. First an overview in Maya how it fits into our existing Kitchen scene file shader network, then we jump in to the user interface .args file to setup the parameters and register our custom node in RenderMan for Maya. We then jump into the .cpp code and show the overhead setup for a Pattern node, then where the custom stuff happens inside our shading context loop. We need to compile our C++ pattern so we go through that on OSX/Linux, then in Windows via the Cutter program used earlier in this course. We finish up this lesson with an overview slide and showing how we can also connect our custom OSL patterns made earlier in this course into our newly created C++ pattern node, all in the hypershade node editor.
Class 07 OSL Part 4 - Shader Metadata & Registering Plugins
The next step in our OSL shaders progression is adding shader metadata for more useful user-interface options, but this requires us some setup steps to "register" our plugin with RfM. The good news is once we set this up we are good to go for all future custom plugins, including C++ patterns, bxdf's, integrators, etc. This class shows you how to setup your dev environment for all these plugins for yourself or the whole studio, in OSX/Linux/Windows.
Class 06 - OSL & PxrOSL Part 3
"Understanding Projections" is the theme of our 3rd class in OSL, and we cover ST, UV projections, then move onto transforming our point P into Screen/NDC projections and finally triplanar. We do all this from scratch in OSL on our recurring Kitchen scene, and show the results of these projections using 3 examples:
1) the useful ratGrid.tex
2) a simple sketch texture mixed with an upstream pattern PxrDirt
3) the beauty render using Pixar128 library textures fed into our OSL and PxrSurface
We also show how we can plug in any pattern upstream from our OSL, like PxrDirt or Curvature, then manipulate it in our OSL, then output it to PxrSurface BxDF.
Class 05 - OSL & PxrOSL Part 2
In our 2nd class on OSL we jump back into our kitchen scene (from Class 3) and take the exact same Se Expressions we created to drive the displacement and noise on the soapbubbles material with iridescence thin film, and convert those to OSL. Converting our previous Se Expressions to OSL gives us a great understanding of the differences of those two types of programmable patterns. We then introduce the concept of procedural variation by assigning a random color MatteID to each object in the scene, and reading that attribute in our OSL. Once we have this random tag on each object, the world is our oyster in what we want to do with it in the OSL: procedurally vary for each object the noise that drives dispalcement, soapbubbles thin film thickness noise, anything we want. We then take this same workflow into the oak OSL shader introduced in the last class, and modify it to vary the ring frequency and wobble frequence as well as color of our oak wood shading. We also demonstrate on the carbonfibre shader using the same technique varying the mesh pattern and diffuse color.
Sections: 1) Intro 2) SeExpr to OSL noise() 3) Random MatteID on objects 4) gettattribute() 5) Procedural Variation on frequency 6) Procedural Variation on oak.sl 7) Procedural Variation on carbonfibre.osl
Class 04 - OSL & PxrOSL Part 1
We morph into the second big topic of Course 2: OSL with PxrOSL. In our first class we get the history, intro, and basics out of the way then show our way around PxrOSL with Maya, writing 2 simple OSL shaders from scratch, compiling them, and loading them in Maya/PxrOSL. Another neat example to explore is the RIB scene file that ships with RenderMan Examples that demos a few OSL shaders (carbon fibre and wood), this example being totally standalone RenderMan without Maya so a great learning tool.Sections:
3) OSL vs PxrOSL
4) Maya Teapot
5) 1st Simple OSL
6) Primvars st UVs
7) 2nd Simple OSL
8) RIB from Maya
9) Standalone RIB Example
10) Recreate in Maya
11) RIB Summary Slide
Class 03 - Se Expressions Part 3
Description: Applying our Se Expressions lessons into an Iridescence Material with PxrSurface from the all new Preset Browser, we explore a new Kitchen scene available from the RenderMan Community site. We modify an Se Expression from last class into one that works to drive the signal of the “Thin Film Thickness" parameter for our iridescence render of soap bubbles material, explore “thin" refraction, create vector displacement Se Expression with vfbm, vturbulence, and vnoise functions.
Visualizing Noise Signal with PxrConstant
SeExpr Iridescence Film Thickness
Animate Iridescence Film Thickness
SeExpr Vector Displacement
Class 02 - Se Expressions Part 2
Description: Continuing off from Part 1, we get into more complex Se Expressions including: vectors and facing ratio variations. And a production example with procedural noise patterns including voronoi and fbm, textures and uv coords all in one pattern. We introduce a much better tool for editing Se Expressions on the fly: Cutter!Sections:
Cutter to the Rescue
Vectors: Facing ratio
Facing ratio: metals
Production Example: Intro
Production Example: Se Expr Setup
Production Example: Summary
Class 01 - Se Expressions Part 1Description: Starting off our 2nd course we introduce Se Expressions: great for quick prototyping and programming without compiling, and realtime code modifications of your patterns right in the IPR render! Intro - Introduction to the class
What Is Se Expression? Explanation of the language
Examples - Examples of different kinds of Se Expressions: patterns, textures, normal facing ration, combinations of all.
All Patterns Overview - Overview of all the different types of patterns: factory plugins, Se Expressions, OSL, Custom C++ Patterns
Maya from Scratch - Lets build it up from scratch with our own Se Expression
Maya SeExpr Voronoi - A voronoi pattern for our 1st example, explaining P vs Pobj through animation
Noise Graphs - modifications to the noise signal
Resources - links to documentation and history.
The Big Question - watch to find out!