-
Notifications
You must be signed in to change notification settings - Fork 3
prman_22.Home
Since the shading-library repository contains only those portions of Laika's Production Shading Library that have been open sourced, each component is documented individually in the following sections.
The Material Layering System encapsulates a "material", which is the combination of a set of responses to illumination (the set of bxdf's) plus the surface displacement, into a single shading node. It also allows materials to be layered one over the other simply by connecting one material node to another in a daisy-chain to define their layering order. The materials' displacements and bxdf responses combine intuitively and in a physically realistic way automatically. Adding, removing, or altering a single material layer is trivial and involves handling just a single node in the material layering chain. All interactions with the other layered materials maintain their physically correct combination with the altered node and each other.
The Production Shading Library at Laika is developed in a Linux environment. Specifically, Fedora. This initial release does not contain any facilities for building in other operating system environments. That said, as long as the necessary c++
compatible compiler and make
and rsync
commands are available, it should be trivial to build the shading-library code on other platforms.
To build the contents, execute
make clean; make
in your local checkout directory of the shading-library. This will put the built contents in a build
sub-directory.
Assuming you checked out this git repository to ~/shading-library
and have built it, katana's execution environment should have the following environment variables set. Make any alterations necessary for your specific set of software.
Using bash
shell:
# Shading-library installation location.
export SHADING_LIBRARY="${HOME}/shading-library"
# Pixar installation location.
export PIXAR_ROOT="/opt/pixar"
# RenderMan version.
export RMAN_MAJOR="22"
export RMAN_MINOR="3"
export RMAN_MICRO=""
export RMAN_VERSION="${RMAN_MAJOR}.${RMAN_MINOR}${RMAN_MICRO}"
# Katana version.
export KATANA_MAJOR="3"
export KATANA_MINOR="0"
export KATANA_MICRO="v6"
export KATANA_SHORT_VERSION="${KATANA_MAJOR}.${KATANA_MINOR}"
# RenderMan and shading-library software locations.
export RMANTREE="${PIXAR_ROOT}/RenderManProServer-${RMAN_VERSION}"
export RFK_LOCATION="${PIXAR_ROOT}/RenderManForKatana-${RMAN_VERSION}-katana${KATANA_SHORT_VERSION}"
export RMAN_RIXPLUGINPATH="${SHADING_LIBRARY}/build:${RMANTREE}/lib/plugins"
export RMAN_SHADERPATH="${SHADING_LIBRARY}/build:${RMANTREE}/lib/plugins:${RMANTREE}/lib/shaders"
# Katana resource locations.
export KATANA_RESOURCES="${RFK_LOCATION}/plugins/Resources/PRMan${RMAN_MAJOR}:${SHADING_LIBRARY}/katana"