This is an old revision of the document!
Table of Contents
Weave (WiP)
This node is based on the 3dsMax Weave OSL shader.
Developed by Zap Andersson, Copyright 2018 Autodesk Inc, All rights reserved. Licensed under Apache 2.0 license.
Inputs
The Projection input has to be connect to a projection node for the shader to work.
The other inputs correspond to the controls exposed in the panel.
Outputs
Colour
Returns the final output colour of the threads on top of the background colour.
ID
Returns a random ID for each thread
Opacity
Returns the opacity of the threads. If Opacity Fade is set to 0%, this is essentially a mask for the threads. If it set to 100%, it includes the effects of the Round Shadow and the Weave Shadow settings.
Displacement
Returns the displacement due to the threads.
For now, there is no bump or normal output since the original shader doesn't compute it.
Parameters
Background Colour
Since the shader renders fibres on top of a background, this allows you to define the background colour.
Scale
The spacing and scale of the fibres. The smaller the scale, the more there are.
U Colour / V Colour
The colour of the fibres along U and V.
Width
The width of the fibres as a percentage to the next fibre.
Opacity Fade
Random Seed
This is used as the base for the noise function used to randomise some of the settings, such as Frizz and Bendyness. A different seed will retain the same general style but with different distributions.
Roundness / Weave
Roundness
This tints the fibres to add pseudo-shading to make them look round.
This works in conjunction with Round Shadow, both need to be higher than 0% for en effect to be seen.
Round Shadow defines the strength of the shading, the Roundness how much of the fibre is covered.
Roundness Displacement
Adds this much displacement due to Roundness to the Displacement output.
Round Shadow
Adds a fake, ambient occlusion style shadow to the Roundness shading.
Weave Displacement
Adds this much displacement due to the weaving to the Displacement output.
Weave Shadow
Adds a fake, ambient occlusion style shadow of the top fibres to the ones underneath it.
Frizz / Bendyness
Frizz
This changes the width of individual fibres along their length.
Frizz Displacement
Frizz Scale
This controls the the frequency of the change in width.
Bendyness
This randomizes the width of the fibres.
Bendyness Scale
Controls the frequency of the Bendyness.