|
|
MATHS NODE: MOD
The Mod node divides Value1 by Value2 and returns the remainder. Thus, 3 divided by 2 would produce a Mod of 1; 6 divided by 4 would produce a Mod of 2. This node can be used to make patterns repeat, or to add another level of complexity to a texture such as the cloud or turbulance nodes. Finally, it can be used to brighten up a dull fractal pattern.
Using Mod to make a pattern repeat
- Create a Maths node, and set it to the Mod function.
- Plug a U node into the Value1 attribute of the Mod function.
- Set Value1 to 2 and Value2 to 1. The U gradient will repeat twice.
Change Value1 to alter the amount of times the gradient repeats. If you want duller bars, set Value1 to .5 and Value2 to 0.25. To get brighter bars, set Value1 to 4 and Value2 to 2. This output could be plugged into a Round node to produce clearer bars, or into a Sin node to produce smoother grids
Using Mod to make a more complex pattern
This is a varient on the above use.
- Create your Maths node, set it to the Mod function, set Value1 to 2 and Value2 to 1.
- Plug the node of your choice into Value1. The Cloud node can be very effective here
The Cloud node will be repeated twice, producing a much more complex result.
Using Mod to brighten up a dull fractal
Sometimes the results from the fractal nodes can be a little dull. If you want to brighten them up, you can use a Mod node.
- Create your Maths node, set it to the Mod function, and set Value1 and Value2 to 2.
- Plug a Fractal_Sum node into the Value1 attribute of the Mod node.
This will brighten up the Fractal_Sum (The multiply node can do the same thing) |