Skip to main content

Rendering

How can I use light linking with Yeti nodes?​

Each rendering extension exports Yeti's data to its renderer differently, so we recommend light-centric light linking, using the shading group of the shader assigned to the Yeti node.

In this example, we created a new Lambert shader, which created the lambert2SG shading group (which is a set), then unlinked VRayLightDome1 from that shading group. In the render, objects with that shader (here, the second sphere) don't receive any direct light from the unlinked light, only indirect bounce light.

Light linking a Yeti node's shading group

Rendering with Autodesk Arnold isn't working​

If you're rendering with Arnold, first make sure you have compatible versions of MtoA and Arnold.

Each Yeti release is built against a specific version of MtoA and Arnold. Check the release notes for the versions each build uses.

Once you've confirmed that you're using compatible versions, check your environment variables.

Both MTOA_EXTENSIONS_PATH and ARNOLD_PLUGIN_PATH need to be set as described in Renderer Extension Configuration.

You can check both of their values with the getenv command in Maya. For example:

getenv("MTOA_EXTENSIONS_PATH")
getenv("ARNOLD_PLUGIN_PATH")

They should include Yeti's plug-ins and bin folders respectively, as described in Renderer Extension Configuration.

note

We've found that recent versions of MtoA may not pass environment variables on to the render process they start. If so, set these variables at the system level, rather than in Maya.env, so they're set everywhere.

If Yeti reports that it can't read or write its intermediate cache files, check that the folder exists and that you have permission to write to it. See YETI_TMP in Environment Variables.

Rendering with Chaos V-Ray isn't working​

If you're rendering with V-Ray, first make sure you have a compatible version. Each Yeti release is built against a specific version of V-Ray: check the release notes for the version each build uses.

Once you've confirmed that you're using a compatible version, check your environment variables.

VRAY_FOR_MAYAXXXX_PLUGINS, VRAY_FOR_MAYAXXXX_TRANSLATORS_PATH and VRAY_PLUGINS need to be set as described in Renderer Extension Configuration. You can set them in your system environment variables or in Maya.env.

Replace XXXX with the version of Maya you're using. For example, for Maya 2027 with Yeti installed in C:\Program Files\Yeti-v5.3.1_Maya2027-windows:

VRAY_FOR_MAYA2027_PLUGINS = %VRAY_FOR_MAYA2027_PLUGINS%;C:\Program Files\Yeti-v5.3.1_Maya2027-windows\bin
VRAY_FOR_MAYA2027_TRANSLATORS_PATH = %VRAY_FOR_MAYA2027_TRANSLATORS_PATH%;C:\Program Files\Yeti-v5.3.1_Maya2027-windows\plug-ins
VRAY_PLUGINS = %VRAY_PLUGINS%;C:\Program Files\Yeti-v5.3.1_Maya2027-windows\bin

We also recommend adding Yeti's bin folder to your system's PATH variable:

PATH = %PATH%;C:\Program Files\Yeti-v5.3.1_Maya2027-windows\bin

To check that these are set in your working environment, use the getenv command in Maya. For example:

getenv("VRAY_FOR_MAYA2027_PLUGINS")
getenv("VRAY_FOR_MAYA2027_TRANSLATORS_PATH")
getenv("VRAY_PLUGINS")

Each command should return the values you've set.

If Yeti reports that it can't read or write its intermediate cache files, check that the folder exists and that you have permission to write to it. See YETI_TMP in Environment Variables.

Can I use masks to give different areas a different shader?​

Yes. Paint a mask on a groom, carry it through the graph as an attribute, and read the attribute in your shader. This example does it for instanced objects; for fibres, the first two steps are enough.

  1. Paint a new attribute on the groom, called instanceshader (or something similar). You can paint it from 0.0 to 1.0, or use higher values, such as 0.0 to 10.0, for more steps. Raise the groom's Max Clipping Level to see the higher values in the viewport.
  2. Before the Instance node, add an Attribute node that creates an attribute called instanceshader. Turn on Sample Groom, set Groom Attribute to the attribute you painted, and connect the groom to the Attribute node's second input.
  3. In the Instance node's Objects tab, add instanceshader to Inherit Attributes. All of the instances now have this attribute (as well as parent_id, parent_s and parent_t).

Inherited attributes are mapped automatically, so they're exported to the renderer. Each renderer reads them differently:

  • V-Ray: use a VRayUserScalar (or VRayUserColor) node. Enter the name of the attribute, and its value comes out of the node's outAlpha attribute, which you can use with a switch node (or similar) to change the shading.

  • Arnold: use an aiUserDataFloat (or aiUserDataColor) node, which you can use with a switch node (or similar).

  • RenderMan: the attributes are written to the RIB stream as shader parameters, so if you export instanceshader, your surface shader should have a parameter like this:

    surface myShader( float instanceshader = 0.0 )

    Yeti declares the attributes so you can use them when shading.