1
$\begingroup$

I'm trying to project a vector onto another vector using the Vector Math node's Project mode like this:enter image description here

However, almost every output is just input B (1,0,0). This happens regardless of what A/B are.

enter image description here

Am I misinterpreting Blender's version of vector projection? Is there a quick way to get standard vector projection (1,0,0 onto 1,0,1 is ½,0,½)?

$\endgroup$
2
  • 2
    $\begingroup$ FWIW blender's mathutils.Vector.project eg Vector((1, 0, 0)).project((1, 0, 1)) yields the desired result. $\endgroup$
    – batFINGER
    Jul 24 at 2:57
  • 2
    $\begingroup$ The GeoNodes implementation is fixed now. Thanks, devs :) $\endgroup$ Jul 26 at 12:46
4
$\begingroup$

This turns out to be a fault in the implementation of GeoNode's Vector Project, at the time of writing. Now fixed. Thanks, @mistajolly.

In the mean time:

enter image description here

This cluster returns a Vector Projection as defined, for example, here (Thanks, @batFINGER, for the reference)

$\endgroup$
3
  • $\begingroup$ Surely it's as explained in en.wikipedia.org/wiki/Vector_projection For gnode gnoobs like me, Could you please elaborate on why above as opposed to question setup? $\endgroup$
    – batFINGER
    Jul 24 at 13:48
  • 2
    $\begingroup$ I've pushed a fix to Blender: developer.blender.org/D12029 $\endgroup$
    – mistajolly
    Jul 26 at 12:29
  • 1
    $\begingroup$ @mistajolly Cheers! I got the mail. Didn't expect it would fit into the schedule so soon. Thanks! $\endgroup$ Jul 26 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.