Interpolate position in a distorted coord. system

   725   2   0
User Avatar
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

Attachments:
Distortion.png (23.3 KB)

User Avatar
Member
4512 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 | animatrix2k7.gumroad.com
User Avatar
Member
74 posts
Joined: 1月 2015
Offline
animatrix_
I would just use Point Deform SOP for this
Thanks, it works. Seems like the "Radius" and "Max points" have to be tweaked to the specific situation to get clean results.
  • Quick Links