Versions Compared

Key

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

...

Overview

...

Section
Column
width50%60%

The VRayMtlOSL 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 VRayOSLMtl plug-in can be used with shaders that write in closure color output parameters. 

 
Column
width5%


Column
width45%35%

Image Added

 Image Removed

 

UI Expand
titleUI Path: ||Right-click on the geometry|| > Assign New Material...
Section
 
Column
width5%

Column
width30%300px

||Right-click on the geometry|| > Assign New Material... > VRay section > VRay Mtl 2Sided

 

Image Removed

OSL


Image Added

Column
width5%

Column
width30%280px

||V-Ray Shelf|| > Right-click to Create V-Ray Materials button > VRay Mtl 2Sided

 

Image Removed

OSL


Image Added

Column
width5%

Column
width30%500px

||Hypershade|| > Window tab > Create... > VRay section > VRay Mtl 2SidedOSL



Image RemovedImage Added

 
Column
width5%



Basic Parameters

...

Section

||Hypershade|| > Create panel > VRay section > VRay Mtl OSL

Column
width5%

 

Column
width30%
Column
width30%

||Create Render Node window|| > VRay section > VRay Mtl OSL

 

Column
width30%

||V-Ray Shelf|| > Right-click Create V-Ray Materials button > VRay Mtl OSL

 

Column
width5%

 

 

Basic Parameters

Image Removed

62%

Shader File Name – Specifies the .osl or .oso file which contains the shader code.

Recreate attributes – Reloads the material and resets its parameters.

Viewport color – Specifies the diffuse component of the material used in the viewport shading.

Max Ray Depth – Specifies the maximum reflection/refraction depth for the material.

Closure Output

...

  – Specifies the closure color source for the materials output. The built-in output closure color parameter Ci is selected by default.

...

Column
width5%


Column
width33%

Image Added



Shader Attributes

...

Section
Column
width62%

This section holds all parameters found in the shader itself and can be edited from here.

...

Column
width5%

Column
width33%

Image Added

...

Notes

...

Fancy Bullets
typecircle
  • The VRayOSLMtl material The VRayOSLMtl material automatically compiles OSL shaders to object code (OSO format) upon shader selection. No following compilations occur (even at render events). If the loaded  OSL shader is modified use the context menu options Reset or Reload of the Shader file button for your changes to take effect.
  • An  An OSL compiler that translates *.osl files to *.oso files can be found in the tools subdirectory of V-Ray's root installation folder.

...

  • Open Shading Language version 1.10 is supported.

References

...

Fancy Bullets
typecircle

 

...