8
$\begingroup$

I'm trying to translate the vertices of one object in the direction of the nearest vertices of a second object. I know this can be achieved by blending the two vectors using a mixRGB node like this: enter image description here

enter image description here

My issue is that the possible positions are limited to the space between the two vectors. How would I do this so that I could translate past the limits in both directions? Sort of like the factor being any value, not just between zero and one.

I feel like this is simple vector math but I can't seem to articulate this problem into a relevant web search.

$\endgroup$
2

2 Answers 2

5
$\begingroup$

a very easy setup would be using this:

enter image description here

enter image description here

$\endgroup$
6
$\begingroup$

To escape the limitation that RGB color-components can't have values outside 0-1, you can make your own 'Mix Vector' node-group, whose output is Fac * B + (1-Fac) * A:

enter image description here

... and then use it wherever you need an unclamped vector mix.

Edit: However! See @Chris' answer for a simpler fix, since Blender 3.1's Map Range node can now accept Vector parameters.

$\endgroup$
4
  • 1
    $\begingroup$ i think you could simply use a map range vector node with clamp unchecked.... $\endgroup$
    – Chris
    Commented Mar 1, 2022 at 7:33
  • 1
    $\begingroup$ @Chris Quite right! I'm so used to chugging away with my little node group, I missed the 3.1 improvement in Map Range. :) $\endgroup$
    – Robin Betts
    Commented Mar 1, 2022 at 8:07
  • $\begingroup$ i am so proud that i could make it easier than the GREAT Robin Betts!!! :D $\endgroup$
    – Chris
    Commented Mar 1, 2022 at 8:07
  • $\begingroup$ ok, i deleted it... ;) $\endgroup$
    – Chris
    Commented Mar 1, 2022 at 8:31

You must log in to answer this question.

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