Interpolating values between points

   2575   4   0
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline


I need to interpolate values between those points with value greater than 0.
I managed to use the attribute transfer node, which kind of works, but this solution doesn't seem much robust or precise.

I guess I should use the attribute interpolate node, or the vex function primuv(), but don't really understand how to set it up.

I attached the simple project file, any help appreciated.

Cheers
Edited by Andr - Nov. 7, 2018 19:27:31

Attachments:
Q_interpolate_pts.hiplc (163.6 KB)

User Avatar
Member
77 posts
Joined: Feb. 2017
Offline
primuv will interpolate the specified attr of points / vertices on this prim, based on the intrinsic uv of prim.
Attribute Inpterpolate SOP is a integrated SOP that contain primuv function to interpolate specified attrs from source prim.

My English is not good, so I have no ability to explain that what is the intrinsic uv of a prim.
May be there are some topics have talked about it already.
Edited by zengchen - Nov. 8, 2018 01:06:00

Attachments:
attribute_interpolate_by_prim_and_intrinsic_uv.hiplc (170.9 KB)

My Youtube Channel [www.youtube.com]
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
Hey Zeng Chen thanks a lot, but I could not manage to implement your solution.


I ended up doing this:
1) Cut the curve where the point pscale is different than 0. Each new prim has now a start and end point with pscale > 0. Middle points have pscale = 0
2)For each new primitive, fit01() the intrinsic UV of the middle points to the pscale max and min values of the ends point.


It was a little bit convoluted but seems to work.
Probably there is a better and faster solution that I'm not aware of. Would love to see it

Thanks a lot again!
I attached my solution if you want to critique it.
Edited by Andr - Nov. 8, 2018 05:37:32

Attachments:
Q_interpolate_pts_FIX.hiplc (168.8 KB)

User Avatar
Member
77 posts
Joined: Feb. 2017
Offline
Andr
Hey Zeng Chen thanks a lot, but I could not manage to implement your solution.
I may misunderstand your question, sorry about my English, I have misunderstood some questions already…
My Youtube Channel [www.youtube.com]
User Avatar
Member
900 posts
Joined: Feb. 2016
Offline
hey no worries, my question might have been not clear, as I'm not native english speaker as well.
thanks again for caring

cheers!
Edited by Andr - Nov. 8, 2018 07:26:15
  • Quick Links