Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section


Column
width22%



Column
width830px


Panel
borderColor#e0e0e0
bgColor#f0f0f0

Create a Material node.


  • Press tab and begin to type "material".
  • Pick Material to create a Material node.
  • Click the faint gray square to the right of the new node's label (or press E) to edit its parameters in the Parameters panel.



Panel
borderColor#e0e0e0
bgColor#f0f0f0

Add a 3Delight shader to the material node.


In the Parameters panel, click Add Shader and select the type of shader you want to create under dl. In this example, a surface shader is created.


Panel
borderColor#e0e0e0
bgColor#f0f0f0

Select a 3Delight shader.


Click the down arrow to the right of the dlSurfaceShader label to display a list of available surface shaders. Select the desired shader from the list.


Panel
borderColor#e0e0e0
bgColor#f0f0f0

The shader parameters are now accessible.


Unfold the parameters by clicking the arrow to the left of the dlSurfaceShader label to reveal the shader parameters.




Column
width22%

3Delight shaders can be added to a Material node by clicking Add Shader, and then by choosing the desired shader type under dl in the option menu. This will add a dlShader group of the specified shader type. That that contains an option menu; this option menu can be used to select the desired shader. Only OSL shaders of the specified type will be shown. Picking one shader will populate the dlShader group with its attributes.

...




Using the Network Material Node

Section


Column
width22%



Column
width830px


Panel
borderColor#e0e0e0
bgColor#f0f0f0

Create a DlShadingNode.


Image Added

  • Press tab and begin to type "dlshadingnode".
  • Pick DlShadingNode to create the node.
  • Click on the faint square to the right of the node name label (or press E) to edit the node's parameters in the Parameters panel.


Panel
borderColor#e0e0e0
bgColor#f0f0f0

Select the place2dTexture shader.


Image Added

Click the down arrow to the left of nodeType to display the list of available shaders, and select place2dTexture. The parameters section will then be filled with the place2dTexture shader parameters.


Panel
borderColor#e0e0e0
bgColor#f0f0f0

Configure the place2dTexture shader.


Image Added

Set the RepeatU and RepeatV parameters to 8, and rename the node to something more evocative, like "place2dTexture".


Panel
borderColor#e0e0e0
bgColor#f0f0f0

Create a checker DlShadingNode.


Image Added

Using the previous steps as a general guide, create another DlShadingNode. Rename it "checker", and set its nodeType to checker.


Panel
borderColor#e0e0e0
bgColor#f0f0f0

Connect the place2dTexture node to the checker node.


Image Added

  • Click on the arrow to the right of the place2dTexture node to select an output port to connect.
  • Select outUV from the output port list.
  • Click the arrow to the left of the checker node to select the input port to connect.
  • Select UV Coordinates.


Panel
borderColor#e0e0e0
bgColor#f0f0f0

Create and connect a material3Delight DlShadingNode.


Image Added

Using the previous steps as a general guide, add a surface shader to the shading network with the following steps:

  • Create a new DlShadingNode; name it material3Delight and set its nodeType to material3Delight.
  • Connect the checker's outColor output port to the material3Delight's colour input port.


Panel
borderColor#e0e0e0
bgColor#f0f0f0



Panel
borderColor#e0e0e0
bgColor#f0f0f0



Panel
borderColor#e0e0e0
bgColor#f0f0f0




Column
width22%




In order to connect 3Delight shaders to a Network Material node, it must have the proper ports. Adding ports is done by clicking on Add Terminal, then choosing the desired shader type under the dl section in the option menu. The Network Material can now receive an incoming connection from a DlShading Node of the appropriate type.