4
$\begingroup$

The Vector Math node has two output sockets, Vector (vector type) and Value (scalar type).

enter image description here

Most of the vector operations (Normalize, Cross Product, Average, Subtract, and Add) result in vectors, what does the Value socket output when one of these operations is selected? Likewise, what does the Vector socket output when Dot Product (which results in a scalar) is selected?

$\endgroup$
2
  • 1
    $\begingroup$ Surely you have your answer here with this one ? blender.stackexchange.com/questions/62309/… $\endgroup$
    – lemon
    Commented Sep 4, 2016 at 8:23
  • $\begingroup$ @lemon Ummmm... no... There I am asking if a specific function of the VM node uses both inputs, here I am asking what the outputs give when any function is selected. $\endgroup$
    – PGmath
    Commented Sep 4, 2016 at 13:35

1 Answer 1

3
$\begingroup$

The answer can be found in the source which isn't hard to follow.

For add and subtract the Value output is the average of the absolute vector values. That is: $$ \text{value} = \frac{\left\vert v_x\right\vert + \left\vert v_y\right\vert + \left\vert v_z\right\vert}{3} $$

For average, cross product and normalize it is the length of the vector output.

For dot product the vector output is set to zero.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .