Versions Compared

Key

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

This page contains information about the V-Ray OSL Texture TexOSL node. 


Overview

...

Section
Column
width50%

The VThe V-Ray OSL Texture TexOSL map can be used to load Open Shading Language OSL shader code files (.osl) or OSL object OSL object code files (.oso) and render them directly with V-Ray. It can be used with shaders that have simple color and float output parameters. These parameters are considered respectively as texture RGB and alpha outputs.

For more on OSL in general, see the Github reference.

Column
width5%

 


Column
width45%

Image Removed

 

 

...

Image Added

OSL Code

...

Section
Column
width33%

||mat Network|| > V-Ray> Texture > V-Ray OSL Texture

Column
width33%

||shop Network|| > V-Ray Material > V-Ray> Texture > V-Ray OSL Texture

Column
width33%
 

 

 

Node

The TexOSL node provides inputs that correspond to parameters in the section below.

 

Image Removed

 

OSL Code

Image Removed

...

50%

OSL Source  Determines how the OSL code

...

is drawn.

Inline OSL
File path (.oso/.osl)

OSL

...

Code  A space for manual insertion of an OSL code.

Path to .oso/.osl file

...

 – Specifies the .

...

osl or .

...

oso file which contains the shader (object) code.

 

...

Column
width5%


Column
width45%

Image Added


Color & Alpha Tweaks

...

Section
Column
width50%

These rollouts are the standard V-Ray for Houdini texture rollouts.

 

...

Column
width5%


Column
width45%

Image Added


Notes

...

Fancy Bullets
typecircle
  • The VRayTexOSL texture The V-Ray TexOSL texture 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 click the Recreate attributes button for your changes to take effect.

  • An OSL compiler that translates *.osl files to *.oso files can be found in the tools subdirectory of V-Ray's root installation folder.

 


References

...

Fancy Bullets
typecircle

 

...