Vectors -

   509   3   0
User Avatar
Member
14 posts
Joined: March 2023
Offline
How do I know when to use a particular vector in a node.. i.e., Vector 1,2,3 or 4? I'm a bit confused about this.


Thanks
User Avatar
Member
4531 posts
Joined: Feb. 2012
Offline
Hi,

It depends on the node but most SOP nodes use vector3 attributes. In VOPs it's a lot more varied.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
7815 posts
Joined: Sept. 2011
Offline
I use vector2 when I need to store a two dimensional value, and vector for three dimensional value, and vector4 for four dimensional value. E.g: texture coordinates might be vector2, position or normal vector, and homogeneous coordinates or quaternions or matrix rows would be vector4.
User Avatar
Member
14 posts
Joined: March 2023
Offline
animatrix_, Jsmack.

Thank you both for the response, this helps a lot.
  • Quick Links