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


Overview


The V- Ray OSL material 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 OSL material plug-in can be used with shaders that use closure color output parameters.



UI Paths



||V-Ray|| > OSL Material


||Create|| > V-Ray > OSL Material (disabled Separate menu for V-Ray materials)



Shader


Shader FileSpecifies the .osl or .oso file that contains the shader (object) code.

Closure OutputSpecifies the closure color source for the material's output. The built-in output closure color parameter Ci is selected by default.

Max Ray DepthSpecifies the maximum reflection/refraction depth for the shader.

Reload Shader – Reloads the Shader File.

Recreate Attributes – Reloads the Shader File and recreates its attributes




Options


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 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:

Convex 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. 



Preview Settings


Override Preferences – When enabled, the parameters in this tab override the global preferences of the scene for the selected material.

Enable Preview – When disabled, the previews of the material in the Viewport and the Material Editor are disabled. The material is displayed in all black. This saves on processing power.

Enable Global Illumination – When disabled, global illumination is not calculated for the current material preview.

Quality – Determines the quality of the material previews. Higher values give more detail but slow down processing.

Editor Map Size – Determines the resolution of the material preview. If you have extra-detailed textures applied to the material, this option allows you to preview those textures in higher resolution at the preview step, without needing to render.

Default
64×64 (16 KB)
128x128 (64 KB)
256x256 (256 KB)
512x512 (1 MB)
1024x1024 (4 MB)
2048x2048 (16 MB)
4096x4096 (64 MB)