Forum: Carrara


Subject: Reference Shader

evinrude opened this issue on Jan 25, 2008 · 7 posts


evinrude posted Fri, 25 January 2008 at 5:14 AM

Can anyone give me a brief description of what the reference shader is for?

For instance:

In such and such a case, you can use the reference shader and it will.....

Thanks in advance.:)


Hoofdcommissaris posted Fri, 25 January 2008 at 8:28 AM

When you have, for instance, a blue car, you can make a blue car paint shader, and add layers of mud on it. Those layers will be present in parts that are close to the ground and wheels, so you will probably make multiple shaders. One for the roof, that only has a big white '13' on it and no mud (a separate layer for the mud). One for the doors that have mud on the underside (a separate layer for the mud), and so on. When you use the reference shader option, you mix a shader in the shader tree, that points at one actual base shader, like a symbol. Why is that nice? Because when you decide you want to go General Lee with that car model, and make it Orange, all you have to do is change the base shader you are referencing in all shaders. In the example above, that has some kind of 'baked' textures (all shadows and light inflences), the color blue in the shader trees is a reference shader. This helped me to make six more of these constructions, where I just had to change the reference shaders. And everywhere the color went, I could change it by just changing the color blue. In this case that was to be flexible when the client would ask for other color combinations and I did not have time to go around and change all shaders where the color was present. So, in short: when you want a shader or parts thereof to be used in other shaders, use the reference shader.

MarkBremmer posted Fri, 25 January 2008 at 8:29 AM

It' a nice way to save a ton of time if you have different objects in a scene, some with shading domains, some with layer lists and some that just have a single shader that you want to have all use the same type of shader. Instead of having multiple shaders for each item, you can simply have them "subscribe" to a single shader using the Reference Shader. That way, when you edit, you can only work on one item and it automatically updates all instances throughout your scene. A perfect example of where to use this is for the Poser/DAZ people skin textures.






Hoofdcommissaris posted Fri, 25 January 2008 at 8:29 AM

That wasn't brief, was it? Sorry.


Hoofdcommissaris posted Fri, 25 January 2008 at 8:31 AM

(I was talking about my piece, not Mark's ofcourse)


evinrude posted Fri, 25 January 2008 at 9:26 AM

Thank you!  That helped tremendously.


ShawnDriscoll posted Fri, 25 January 2008 at 6:56 PM

Quote - Can anyone give me a brief description of what the reference shader is for?

 

A reference shader eliminates having to CTRL+Drag one shader onto several other shaders you want the same.

www.youtube.com/user/ShawnDriscollCG