I am trying to place a point on a uv-unwrapped mesh based on its UV coordinates interpolated position and normals using uvsample().
float uv_x = chf('uv_x');
float uv_y = chf('uv_y');
vector uv_pos = set(uv_x, uv_y, 0);
@P = uvsample(1, "P", "uv", uv_pos);
@N = uvsample(1, "N", "uv", uv_pos);
While this kind of works, it unfortunately jumps from one row to another instead of smoothly running across the surface. Is this a bug or my fault?
pos_from_uv.hipnc