Freebie: Advanced car paint OSL shader

Scroll down to content

Annotation 2020-07-25 211035

cglSurfaceCarPaint is an advanced, highly customizable, car-paint OSL shader, we’re offering for free.

Download cglSurfaceCarPaint here

cglSurfaceCarPaint combines 3 layers:
Base: A blend of diffuse/metallic shading with a view-angle color mix
Metallic flakes: Distance blended procedural metallic flakes
Clear coat: Glossy clear coat layer with built-in procedural bump irregularity

As an OSL shader, cglSurfaceCarPaint should be working with any renderer supporting OSL closure functions (BSDF’s).
It has been tested to work as expected in the following renderers:
> Cycles for Blender (CPU)
> Arnold 6 for Maya (CPU)
> V-Ray Next for 3ds max (CPU)

> If your not familiar with the subject of OSL shaders, you can learn the basics here.

Blender and Cycles:
Default_Blende-Cycles

Maya and Arnold:
* Centimetres system units
Default_Maya-Arnold

3ds max and V-Ray:
* centimetres system units
* vray_compatible is set to 1 to force roughness consistency with other systems
Default_3dsmax-VRay

Getting started:

  1. Its recommended to reset your model’s scale 1.0 (100%)
    (i.e apply scale / freeze Transformations / reset xform etc.)
  2. Set the system_scale_unit parameter to a 1 meter based value of your scene’s system scale unit ratio
    (i.e a value of 0.01 if you use centimetre system units)
    * See the examples above
  3. If your rendering with V-Ray, set the vray_compatible parameter to 1.
    (this will force consistent rendered result for roughness the values)

cglSurfaceCarPaint parameters:

Base layer parameters:

base_layer_weight
The base layer overall mix weight
base_color_facing
The base layer facing color
base_color_side
The base layer side color
base_color_blend_curve
The base layer color blend curve power (1 = linear)
base_metallic
The metallic mix weight of the base layer
base_dielectric_ior
Base layer dielectric ior (also serves as metallic grasing angle reflection blend)
base_layer_roughness
The base layer metallic and specular roughness

Metallic flakes layer parameters:

metallic_flakes_weight
Metallic flakes overall mix weight
metallic_flakes_color
Metallic flakes color
metallic_flakes_density
Metallic flakes pattern density
metallic_flakes_size
Metallic flakes individual size (independent of pattern density)
metallic_flakes_roughness
Metallic flakes metallic roughness
metallic_flakes_direction_spread
The amount at which the metallic flakes deviate from the original surface normal direction
metallic_flakes_distance_fade
Distance at which the metallic flakes fade completely
metallic_flakes_distance_full
Distance at which the metallic flakes are fully visible

Clear-coat layer parameters:

clear_coat_weight
Clear coat layer weight
clear_coat_ior
The dielectric Refractive Index of clear coat layer
clear_coat_roughness
Clear coat specular roughness
clear_coat_bump_strength
Clear coat procedural bump strength
clear_coat_bump_density
Clear coat procedural bump density
vray_compatible
Sets internal parameters for compatibility with V-Ray (should be either 0 or 1)
system_scale_unit
Meter based system units scale (scales all procedural effects)

 

Our advanced car-paint GPU shading pack for Cycles:

If your looking for a photo-realistic car-paint shader for Cycles, that supports GPU (Cuda) rendering, check out CG-Lion Car Paint Presets Pack 1.0 for Blender & Cycles, available for purchase on our Blender Market store.

 

 

One Reply to “Freebie: Advanced car paint OSL shader”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: