Interpolate position in a distorted coord. system
731 2 0- element33
- Member
- 74 posts
- Joined: 1月 2015
- Offline
I have a bunch of lines (A below). The lines have different lengths and angles, they're not part of any regular grid. These lines undergo a non-uniform distortion (B below), but not to the point of intersecting. I have a point with a known pre-distortion position (yellow dot in A). I want to find where its position would be in B to keep it in sync with the distortion of nearby lines. The pink arrow points to the interpolated position I want to know. I mapped lines A with rest position, uv's, then, in step B, I read and interpolate in vex with "uvsample", but the results are jerky: even if the distortion is relatively regular, the yellow dot moves in sync, but with an uneven jitter. Is there an elegant method (point cloud lookup? attribute transfer?) that gives smooth results?
Edited by element33 - 2023年2月24日 06:24:39
- animatrix_
- Member
- 4521 posts
- Joined: 2月 2012
- Offline
I would just use Point Deform SOP for this.
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
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- element33
- Member
- 74 posts
- Joined: 1月 2015
- Offline
-
- Quick Links