Create Material (Cycle Render)

Material (Eevee Render)



Completed Nodes:
Eevee Nodes.jpeg

Create Edge Mask needed nodes:
image.png

Edge Mask Creation:


Enable on AO (not on by default in Eevee render (no raytracing), only work in Cycle render)
image.png
Set AO node as follow:
Tick inside and only local (don’t let the other object affects AO look), sample rate 8 is enough, reduce distance to only 0.5 something
image.png
Flip AO by invert color node (let exposed region as white, shadowed region as black)
image.png
Set stronger control by multiply and with map range with noise
(adjust noise texture and map range values)
image.png
Connect multiply to add node, change to greater than (remove all value greater than threshold)
image.png

AO Mask creation:


Noise texture affect AO value
AO Only local enable
Color ramp affect range of B/W
Map Range Min and Max value to serve as inverse node funciton
image.png
Connect to BSDF

Create Scratch Mask:


Basic set below:
image.png
In Voronoi Texture node, Change to Distance to Edge
image.png
In Add node after, change to less than, reduce threshold value to 0.010 (make as a thickness of scratches)
image.png
In Map Range node before bottom (2nd) Voronoi Texture (set as F1 for black spherical shapes), change mix max from/to values as below, now set the From Max value to determine how much lines should be masked
image.png
change Add node to multiply
image.png
Plug a constant valkue (here is 3) to both voronoi textures, so be sure they are the same
image.png
Connect extra texture (Musgrave) to Locaiton to Mapping, the vector values changes the shape of voronoi texutures and add randomisation
image.png
Add the multiply node (set value 10) at the end (let white value pop but keep black value constant):
image.png

Base Color Basic:


Use Mix rgb, set 2 colors (A as main, B as dirt color)
Use AO mask to pop out the different colors
image.png
Add 2nd Mix node set as greay white tone (to show the Scrach made before)
image.png

Create Add node to combine Scratch mask and Edge Mask
image.png
Connect it to 2nd mix node factor (a base color mixed with 2 masks should show)
Connect to BSDF
image.png

For Metaliic,

just connect already made 2 masks nodes (Add node) to BSDF Metallic input
image.png

Roughness

(to make 3 separated roughness: overall, dirt, metal, then combine them)
image.png
Set mid grey for black value, and light grey for white value in Color ramp
(to avoid fully reflective or fully rough)
image.png
Connect the color ramp to AO Mask output Fac, and with output:
image.png

Normal Map:


Prefer adjsut Distance than Strength on bump node, for more subtle result
image.png
Set nodes as above will add bump to all exposed areas (e.g. metal, scratch),
to hide those parts, set black (to cover metal edge part), and white (to cover scratch part) factors by using 2 Mix nodes, 1 set as black, 1 set as white:
image.png
Then add 2nd mix white node to connect to scratch
image.png
Set value over 1 (e.g .50) to make scratch more obvious
image.png
Connect to Bump node height input, tick Invert (so scratch is cut into the material, instead of lay on top)
image.png
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.