Table of Contents

This page provides information about the OSL material node in V-Ray for Cinema 4D.


Overview


The V-Ray MtlOSL node can be used to load OSL shader code files (.osl) or OSL object code files (.oso) and render them directly with V-Ray.

The V-Ray MtlOSL node plug-in can be used with shaders that use closure color output parameters.



Shader


Shader File  Specifies the .osl or .oso file which contains the shader (object) code.

Max ray depth – Specifies the maximum reflection/refraction depth for the shader.

Reload Shader – Reloads the shader file. This option is useful if changes to the shader file are slow to display. 



Options


MATERIAL ID

Material Id Enabled – Enables the use of Material ID.

Material ID – The color used by the Material ID render element. You can also use a shader here.

Multimatte ID – The integer ID of the material to be used by the Multi Matte render element.


ROUND EDGES

Round Edges Enabled – Enables the round edges effect, which uses bump mapping to smooth out the edges of the geometry during render time.

Radius – Specify a radius (in world units) for the Round Edges effect. Since the actual geometry is not being changed and only the normals of the faces are affected, large values may produce undesirable effects.

Consider Same Object Only – When enabled, the rounded corners are produced only along edges that belong to the object, which has the attribute applied. When disabled, rounded corners are also produced along edges formed when the object with the attribute intersects other objects in the scene.

Corners – Choose which edges are considered in the calculation. Possible options are:

Covex and Concave – Considers all edges.
Convex Only – Only applies Round Edges effect to edges with convex angles.
Concave Only – Only applies Round Edges effect to edges with concave angles.



Context


Context – Allows the attachment of a Context node (UVW generator) to adjust the UVWs of the texture. For more information, visit the Context Nodes page.


Was this helpful?