db&w documentation wiki

finest software | finest docs

Site Tools


tools:scratch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:scratch [2021/02/15 16:13] lightwolftools:scratch [2021/03/07 13:15] (current) lightwolf
Line 1: Line 1:
-====== Scratch (in progress) ======+====== Scratch ======
 {{:tools:pasted:20210215-161314.png}} {{:tools:pasted:20210215-161314.png}}
  
 This node creates procedural scratches that can be used to drive material attributes. This node creates procedural scratches that can be used to drive material attributes.
-{{ :tools:pasted:20210215-160148.png}}+{{ :tools:pasted:20210216-144710.png}}
 ===== Controls ===== ===== Controls =====
 ==== Density ==== ==== Density ====
Line 30: Line 30:
 Useful values are between 5 and 50. Useful values are between 5 and 50.
  
-<WRAP center round info 80%>+<WRAP center round info >
 The Roughness and Anisotropic values can be used to drive any parameter. The naming used is for convenience as they should be connected to the inputs of the same names in the Principled BSDF node for a scratch effect. The Roughness and Anisotropic values can be used to drive any parameter. The naming used is for convenience as they should be connected to the inputs of the same names in the Principled BSDF node for a scratch effect.
 </WRAP> </WRAP>
Line 38: Line 38:
  
 The Roughness value to send to the node output if no scratch is hit. The Roughness value to send to the node output if no scratch is hit.
 +
 +<WRAP left round info 50%>
 +If this value is used to drive the Roughness of the Principled BSDF material (or any other really), make sure that the sum of the Base Roughness, Scratch Roughness and Roughness Variation is not more than 100%.
 +</WRAP>
 +
  
 ==== Scratch Roughness ==== ==== Scratch Roughness ====
  
 The Roughness value to send to the node output if the current shaded spot is on a scratch. The Roughness value to send to the node output if the current shaded spot is on a scratch.
 +
 +==== Roughness Variation +/- ====
 +
 +This is the range that the Scratch Roughness will change from scratch to scratch based on the underlying noise. Use this to add some variance to the scratches.
 ==== Base Anisotropic ==== ==== Base Anisotropic ====
 The Anisotropic value to send to the node output if no scratch is hit. The Anisotropic value to send to the node output if no scratch is hit.
 +
 +<WRAP left round info 50%>
 +If this value is used to drive Anisotropic of the Principled BSDF material (or any other really), make sure that the sum of the Base Anisotropic, Scratch Anisotropic and Anisotropic Variation is not more than 100%.
 +</WRAP>
 +
 ==== Scratch Anisotropic ==== ==== Scratch Anisotropic ====
 The Anisotropic value to send to the node output if the current shaded spot is on a scratch. The Anisotropic value to send to the node output if the current shaded spot is on a scratch.
 +
 +==== Anisotropic Variation +/- ====
 +
 +This is the range that Scratch Anisotropic will change from scratch to scratch based on the underlying noise. Use this to add some variance to the scratches.
  
  
Line 51: Line 69:
  
 ==== Rotation Offset ==== ==== Rotation Offset ====
 +
 +This adds an offset to the Rotation output which can be used to control the direction of the anisotropic shading.
  
 {{:tools:scratchanirotate.mp4 |}} {{:tools:scratchanirotate.mp4 |}}
Line 57: Line 77:
 The inputs correspond to the controls of the same name. The inputs correspond to the controls of the same name.
 ==== Outputs ==== ==== Outputs ====
 +
 +=== Roughness ===
 +
 +This outputs the Scratch Roughness if the current spot is on a scratch, otherwise the Base Roughness.
 +
 +=== Anisotropic ===
 +
 +This outputs the Scratch Anisotropic value if the current spot is on a scratch, otherwise Base Anisotropic.
 +
 +=== Rotation ===
 +
 +This is the direction of the Anisotropic value, based on the direction of the scratch as well as the Rotation Offset.
 +
 +=== Mask ===
 +
 +This outputs white if the spot is on a scratch, otherwise black. The Strength is also taken into account.
 +
 +{{:tools:pasted:20210215-181816.png}}
 +
 +----
 +[[https://www.patreon.com/dbw|{{  ::become_a_patron_button.png?nolink|}}]]
 +This is the plugin of the month for February 2021, made possible by the finest patrons on [[https://www.patreon.com/dbw|Patreon]].
 +
 +Scratch is based on scratch.osl by John Su - https://github.com/cuckon/scratched
 +
 +
  
  
tools/scratch.1613402003.txt.gz · Last modified: 2021/02/15 16:13 by lightwolf