car_paint

Class

Shader

Output

RGB

Synopsis

 

This simple to use shader is useful for creating car paint materials. It supports three layers: Base layer, Specular and clear Coat. These layers work similarly to those in the Standard Surface shader. However, there are some unique attributes for specifically controlling color ramps, light facing color and falloff that are unique to the Car Paint shader. Metallic flakes can also easily be added to the Specular layer.

When flakes become smaller than a pixel, they can introduce rendering artifacts during an animation. Increasing Camera (AA) samples can help to reduce flakes from 'shimmering' over distance.

 

base

The primer layer color weight.

 

base_color

The color of the primer layer.

 

base_roughness

The primer layer follows an Oren-Nayar reflection model with surface roughness. A value of 0.0 is comparable to a Lambert reflection.

 

specular

The base coat color weight.

 

specular_color

The color the specular reflection will be modulated with. Use this color to 'tint' the specular highlight from the base coat layer.

Specular Color: White (default). Rollover image to view orange.

 

specular_flip_flop

Connect a ramp shader here to modulate the specular reflection from the base coat depending on the viewing angle. This can be used to mimic a pearlescent effect.


Rollover image to view without ramp (solid color). The color changes depending on the viewing angle. 

specular_light_facing

Modulates the base coat specular color of the area facing the light source.

Pearlescent car paint effects can be created by combining Light Facing Color with Base Color.

 

specular_falloff

The falloff rate of the light facing color of the base specular coat. The higher the value, the narrower the region. It also determines how the ramp color and light facing color are blended.

In the example below, the Flip-Flop color has been set to green and the Light Facing Color to red.

Setting the Falloff to 1 disables the Light Facing Color (red):

Falloff: 0 to 1. Flip-Flop color: Magenta, Light Facing Color: Red

 

specular_roughness

Controls the glossiness of the specular reflections from the base coat layer. The lower the value, the sharper the reflection. In the limit, a value of 0 will give you a perfectly sharp mirror reflection, while 1.0 will create reflections that are close to a diffuse reflection. 

 

specular_IOR

Determines the index of refraction for the base coat.

 

transmission_color

Simulates light attenuation due to pigments. The lower the value, the denser pigments.

 

The Transmission Color also affects the appearance of the flakes. For example, when the Base Color is blue and the Transmission Color is yellow it becomes multiplied and renders as green, with the flakes tinted yellow.

 

flake_color

The color the specular reflection will be modulated with. Use this color to 'tint' the specular highlight from flakes.

 

flake_flip_flop

Connect a ramp shader here to modulate the specular reflection from flakes depending on the viewing angle.

Ramp connected to Flake Flip Flop

 

flake_light_facing

Modulate the specular reflection color from flakes of the area facing the light source.

 

flake_falloff

The falloff rate of the light facing color of flakes. The higher the value, the narrower the region.

(Light Facing Color: blue)

 

flake_roughness

Controls the glossiness of the specular reflections from flakes. The lower the value, the sharper the reflection. In the limit, a value of 0 will give you a perfectly sharp mirror reflection, while 1.0 will create reflections that are close to a diffuse reflection. 

 

flake_IOR

Determines the index of refraction of flakes.

 

flake_scale

Scales the flake structure up or down. Smaller values zoom out of the map, giving a larger number of flakes.

 

flake_density

Controls the density of flakes. There will be no flakes if it is 0. The surface is fully covered with flakes at 1.

 

flake_layers

Specify the number of flake layers. The flakes at a deep layer are covered by the ones closest to the surface.

 

flake_normal_randomize

Randomize the orientation of flakes.

 

flake_coord_space

Specifies the coordinate space used for calculating the shapes of flakes.

  • World: points are relative to the global origin of the scene.
  • Object: points are expressed relative to the local origin (center) of the object.
  • Pref (default): short for 'vertex in reference pose'. The plugin can pass these vertices to Arnold (in addition to the regular, deformed vertices) which can, in turn, be queried by the shader so that the texture 'sticks' to the reference pose and does not swim as the mesh deforms. (Pref does not work with NURBS surfaces.)
  • UV: the texture coordinates.
 

pref_name

Specify the name of the reference position user-data array. Previously, the name was hard-coded as "Pref", which is still the default.

coat

This attribute is used to coat the material. It acts as a clear-coat layer on top of the base coat and primer layers. The coating is always reflective (with the given roughness) and is assumed to be dielectric. 

Coat weight: 1 (rollover image to view 0). Specular Roughness: 0.5.

 

coat_color

This is the color of the coating layer's transparency.

Coat Color: White (default). Rollover image to view red.

 

coat_roughness

Controls the glossiness of the specular reflections. The lower the value, the sharper the reflection. In the limit, a value of 0 will give you a perfectly sharp mirror reflection, while 1.0 will create reflections that are close to a diffuse reflection. You should connect a map here to get variation in the coat highlight.

 

coat_IOR

The IOR parameter (Index of Refraction) defines the material's Fresnel reflectivity and is by default the angular function used. Effectively the IOR will define the balance between reflections on surfaces facing the viewer and on surface edges.

 

coat_normal

The Coat Normal affects the Fresnel blending of the coat over the base, so depending on the normal, the base will be more or less visible from particular angles. Uses for Coat Normal could be a bumpy coat layer over a smoother base. This could include a rain effect, a carbon fiber shader or a car paint shader where you could use different normals (using e.g. flakes) for the coat layer and base layers. 

 

 

 

  • No labels