garf Posted December 1, 2017 Share Posted December 1, 2017 Hello, I have two sets of curves - the first has a lot of points and the second is a lower-res resample of the first. Ideally I would like to simulate the lo-res and then match the hires back to the lo-res. I'm thinking I need to find the nearest uv location on the lo-res for the hi-res points (on a rest frame) and then transform each of the hi-res points via that matrix in order to match them. Is this the right methodology and how do I go about doing this? Any pointers greatly appreciated. Quote Link to comment Share on other sites More sharing options...
Noobini Posted December 1, 2017 Share Posted December 1, 2017 pointdeform ? Quote Link to comment Share on other sites More sharing options...
garf Posted December 1, 2017 Author Share Posted December 1, 2017 (edited) Pointdeform almost gets me there but it's not a match - templated (grey) is what I want it to be. I've tried a setup using nearpoint on rest frames and then using that point number's point position on the animated geo to set my point positions. This almost works too but with some random points crossing over to other curves: Edited December 1, 2017 by garf grammar Quote Link to comment Share on other sites More sharing options...
garf Posted December 1, 2017 Author Share Posted December 1, 2017 I was over thinking it. This will do the job. prim attribute = P Quote Link to comment Share on other sites More sharing options...
stickman Posted December 1, 2017 Share Posted December 1, 2017 @garf... errr... how does that work exactly? Would you mind sharing a simplified scene? Quote Link to comment Share on other sites More sharing options...
garf Posted December 1, 2017 Author Share Posted December 1, 2017 Sure. matchCurves.hip 1 1 Quote Link to comment Share on other sites More sharing options...
stickman Posted December 1, 2017 Share Posted December 1, 2017 Thanks.... I'm still learning all the (literal) ins and outs... hooking all this stuff up! Quote Link to comment Share on other sites More sharing options...
Noobini Posted December 1, 2017 Share Posted December 1, 2017 5 hours ago, garf said: Sure. matchCurves.hip nice...thanks. Quote Link to comment Share on other sites More sharing options...
djiki Posted December 4, 2017 Share Posted December 4, 2017 Yes, primuv function is for that purpose. I didn't open your scene.... but usual technique would be like this:. Suppose you have low res curves. Then just generate U coordinate attribute on those (resample node can do that or you can process each curve separately where U = float(@ptnum / (@numpt-1)) on each curve assuming point order is sorted same way as on high res curve).. That puts U in range (0 to 1). Later at the place you need some attribute from lowres curve to put on hi res (assuming curve count is the same) you can use pointwrangle node, connect high res curve into first input and low res curve into second : vector tempUV = set(@u, 0, 0); @attribute = primuv(1,"SomeAttributeFromLowRes", @primnum, tempUV); This way you can fetch any attribute from LowRes curve to HighResCurve (and vice versa if you exchange inputs into wrangle node) according to U coordinate which should exists on both geometries. So if you write: @P = primuv(1,"P",@primnum, tempUV); This will put your high res curve at low res curve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.