intersect VEX function deviation

   997   2   0
User Avatar
Member
9 posts
Joined: Nov. 2021
Offline
Hi,

I tried to test the "intersect" function, and the problem I faced was that when I changed the y position of the source point, the intersection points deviated from the rays! The intersection points are not on the rays anymore! Maybe I have to use the "uvw", but I don't know how.

I appreciate your help.

------------------
Houdini v 19.5.359
Edited by ali_sarlak - Oct. 4, 2022 02:37:13

Attachments:
intersection.hipnc (89.8 KB)
intersect.png (581.4 KB)
intersect2.png (581.4 KB)

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

You are using the intersect function wrong:
https://www.sidefx.com/docs/houdini/vex/functions/intersect.html [www.sidefx.com]

Instead of start and end pos, you need to provide one position and one direction, where the length of the direction specifies how far the ray can reach from the origin point.
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 | animatrix2k7.gumroad.com
User Avatar
Member
9 posts
Joined: Nov. 2021
Offline
Thanks it solved.
  • Quick Links