My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Tutortial_01  
First tutorial
Updated Feb 4, 2010 by cedricpa...@gmail.com

Tutorials

First tutorial


Simple scene with a subsurfed monkey, two shaders and a buffered shadow spotlight.

Download this file to begin with the plugin.

Lights attributes


Outlined in green are the parameters that are exported to the default light shader.

Light linking

You can link your lights to shaders in the "Material" panel by entering the name of a group of light (see light linking in Blender doc).

Object attribute


Surface color and alpha (green outlines) are exported (as Cs and Os).

About Renderman shaders


Writing a shader

  • Open a new text object in Blender, rename it to SHA_NameOfTheShader, and write your code in the text area. (Download the blender file to see how it works)
  • Click on the "Compile" Button to compile your shader.
  • Load the compiled shader (with .sdr extension) with the "Load" button in the shader editor (NUMPAD 3).

Assigning a Renderman shader

Enter this panel by pressing the NUMPAD 3 Key (the mouse pointer in the script panel).

  • Load a shader by clicking "Load" button and select a compiled shader (.sdr).
  • Select the shader with the "Shader:" button.
  • Assign a shader to object(s) by selecting one or more objects, then click "Assign" Button.
    • Another method to assign a shader to an object is to go in the object attribute "NUMPAD 2" and selecting the surface shader in the list.
  • You can preview a shader by clicking "Preview as:" button and select the geometry.
  • Get the assigned shader of an object by clicking "Get assigned" and the kind of shader (Surface, Light, ..).

Tweak the shader's parameters with the buttons at the right of the shader preview image.

At the right of each parameter button there's a "SCR" button. If you click on it, you'll be able to enter a Python expression. Just delete the text to get back to the parameter button.

Go to to the next tutorial


Sign in to add a comment
Powered by Google Project Hosting