Interpolating values between points
2916 4 0- Andr
- Member
- 899 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
- zengchen
- 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.
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
- Andr
- Member
- 899 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.
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
- zengchen
- Member
- 77 posts
- Joined: Feb. 2017
- Offline
- Andr
- Member
- 899 posts
- Joined: Feb. 2016
- Offline
-
- Quick Links