MATHS: SUBTRACT

MATHS FUNCTIONS: SUBTRACT

As you would expect, the subtract node subtracts Value_2 from Value_1. It can be used with no input nodes, although makes little sense without at least one node - you might as well provide the answer to your sum directly!

Figure 1 shows an example of the subtract node being used to more detail to the Brick node. The smaller bricks from the Brick_2 node are being subtracted from the large bricks from the Brick node. Value_2 of the subtract node has been set to 0.4. This produces the gray patch in the middle of each brick.

The maths behind this is quite simple. White is equal to 1, black to 0 and middle gray to 0.5. Both set of bricks are white. Value 1 is therefore 1x1=1. Value 2 is 1 (white) x 0.4 (value_2)=0.4. The sum then becomes 1-0.4=0.6, producing a slightly brighter than middle gray.


Fig 1: Subtract with two nodes


PoserWorld