Show/Hide Toolbars

Clarisse 3.6 User Guide

In Clarisse, a Shading Variable is defined by a name and a value. Variables and their values can be declared at different places. They can be declared:

  • on scene objects through the attribute Shading Variables.
  • on shading groups through the material linker.
  • on hierarchy of scene objects until individual shading groups via shading layers.

 

Once variables are defined, they can be bound to attributes of textures and materials.  When a (x) icon is displayed next to its attribute value, it means it can be bound to a shading variable.

 

 

When an attribute is bound to a Shading Variable, the value of the attribute is then contextual to the value of the variable. For example, let's say we have two scene objects A and B sharing one material which binds the attribute Filename of a Texture Map File to a variable DIFF.In the scene object A Shading Variable attribute we have set:

DIFF "/path/to/object_A/diffuse/texture"

 

Whereas in the scene object B we have set Shading Variables to:

DIFF "/path/to/object_B/diffuse/texture"

 

During rendering, when the material is evaluated on object A the value of the variable DIFF will take what has been defined in object A: "/path/to/object_A/diffuse/texture". This behave as if the Filename attribute of the Texture Map File was explicitly set to "/path/to/object_A/diffuse/texture". In the same way, when the material is evaluated on object B, the Filename implicitly becomes "/path/to/object_B/diffuse/texture". In the end, a same material can be applied to multiple geometries while implicitly specializing parts of the texture graph at the scene object level.

Isotropix

Copyright (C) 2009-2018 Isotropix. All rights reserved.