Shader: "wood"

"wood"

ClassColour
Synopsis A solid texture corresponding to a wood pattern. The wood is based around the idea of having a tree trunk centred on a given axis with concentric rings of light and dark wood colours. This shader provides more subtle control over the pattern than the more basic "simple wood" shader. Using all the features of this shader it is possible to re-create the appearance of virtually any type of wood. For common types of wood such as oak, maple, birch, cherry and pine, however, specific shaders are provided which simply have the relevant values for the arguments pre-set (colour shaders "oak", "maple" and so on). It is recommended that, for most applications, you begin with one of these shaders and modify argument values gradually to achieve the effect you want. The arguments/features of this general shader are presented here so that you can see how to create your own specific types of wood if you desire. This shader also accounts for the appearance of random flecks or grains within the wood pattern, and for random perturbations of the ring pattern, which helps give a much more life-like appearance to the wood.
Arguments

"scale" Description: An overall scaling factor which determines the radius difference of two adjacent rings. 0.01 means that there are 100 rings per unit length along the trunk radius. Choose a value appropriate to the units in which your geometry is modelled. The default value is appropriate for modelling in metres.
Default:0.01
Hint:[ 0.01, 1000 ]
"trunk centre" Description: The orientation of the tree from which the wood is taken is specified by a point which lies on the axis in argument "trunk centre" and a direction vector pointing along the axis of the tree in argument "trunk direction".
Default:(0.0, 0.0, 0.0)
Hint:-
"trunk direction" Description: The orientation of the tree from which the wood is taken is specified by a point which lies on the axis in argument "trunk centre" and a direction vector pointing along the axis of the tree in argument "trunk direction".
Default:(1.0, 0.0, 0.0)
Hint: [ -1, 1 ], [ -1, 1 ], [ -1, 1 ]
"wood colour" Description: The colour of the wood between the rings (normally lighter coloured wood representing spring growth in the tree).
Default:(1.00, 0.96, 0.8)
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"ring colour" Description: The colour of the (normally darker) rings in the wood.
Default:(0.98, 0.85, 0.53)
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"ring width" Description: The width of the rings relative to the tree's trunk. 0.0 means no ring at all, 1.0 means that all the trunk area is covered by the ring colour.
Default:0.5
Hint:[ 0.1, 0.6 ]
"ring fuzz in" Description: Specifies the sharpness of the edges of the inside of the rings (the value actually represents the fraction of the ring width over which the interpolation from one colour to the other is done). The default value was chosen to represent common growing cycles in temperate climates (a reasonably quick start of new growth in the spring followed by a slower decline in growth during the late summer).
Default:0.3
Hint:[ 0.1, 1 ]
"ring fuzz out" Description: Specifies the sharpness of the edges of the outside of the rings (the value actually represents the fraction of the ring width over which the interpolation from one colour to the other is done). The default value was chosen to represent common growing cycles in temperate climates (a reasonably quick start of new growth in the spring followed by a slower decline in growth during the late summer).
Default:0.1
Hint:[ 0.1, 1 ]
"gnarl" Description: Allows random perturbation of the regular rings inside the trunk. This allows localised `knot' patterns to form, for example. The higher value of the parameter the more `gnarled' the rings pattern becomes.
Default:0.5
Hint:[ 0, 2 ]
"grain" Description: Determines the intensity of the random grain effect. 0.0 means no grain at all, with higher values making the grains more distinct and visible (values in the order of 0.5, 1.0 or 2.0 create reasonable effects).
Default:0.0
Hint:[ 0, 2 ]
"ring fuzz grain" Description: The amplitude of the high-frequency perturbations of the ring edges.
Default:0.3
Hint:[ 0, 0.5 ]
"grain colour" Description: The colour of the random flecks or grains in the wood pattern.
Default:(0.15, 0.05, 0.05)
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"grain scale" Description: Determines the size of the grain in relation to ring size (both the random grain flecks and the ring fuzz grain). Values between 0.1 and 2.0 are resonable---1.0 means that the grain size is comparable to the distance between two adjacent rings.
Default:0.4
Hint:[ 0.1, 2 ]

Previous page alphabetically (white_balance_tone)
Next page alphabetically (wooddisplacement)
Index


Copyright © 2010 Lightwork Design Limited. All rights reserved