nico_venster Posted August 10, 2015 Share Posted August 10, 2015 I know it is possible for one to transfer points from object A to object B if they both have the same number of points. It is also possible to transfer points from object A to object B if object A has more points than object B by using a wrapping formula which looks like this: Object A scatter1 (60) attribute create "variable1" (integer, value = $PT % npoints("../scatter1")) Object B scatter (15) attribute create "variable1" (integer, value = $PT) Plug into Blendshape/Sequenceblend and presto. What I would have liked to find out after this was how to "wrap" a smaller number of points onto a bigger number of points. A friend and I managed to make a formula to do this but only mathematically and I am not sure how to apply this principle to transferring points from one object to another in Houdini to which I am still quite new. Here is the formula: Object A - scatter (3) [A, B, C] Object B - scatter (11) floor($NPT Object A / $NPT Object * $NPT Object A + ($NPT Object B % $NPT Object A) * A So here's what it would look like: floor(3/11)*3 [A, B, C] + mod(11, 3)*A So basically my question is: Would this formula be useful? I have tried to write these values into attribute create nodes but got stuck somewhere everytime. Thanks! Quote Link to comment Share on other sites More sharing options...
edward Posted August 12, 2015 Share Posted August 12, 2015 Have you tried using Attribute Transfer on the P attribute? Quote Link to comment Share on other sites More sharing options...
nico_venster Posted August 12, 2015 Author Share Posted August 12, 2015 Hey Edward, I have tried but must have made a mistake coz I didn't get it to work, although I also haven't spent a lot of time trying to figure out why. Shot for the reply =) Quote Link to comment Share on other sites More sharing options...
ftaswin Posted August 16, 2015 Share Posted August 16, 2015 Do search for point cloud lookup. It might be what you need Quote Link to comment Share on other sites More sharing options...
nico_venster Posted August 20, 2015 Author Share Posted August 20, 2015 (edited) Thanks cloud68, I'm not very familiar with point cloud lookups until you mentioned it. Seems awesome and useful, although in this context I'm not sure how it would be used to "create" points, unless it filters through the amount of points from object A and when there's more points (when compared to object B ) that the point cloud creates them. Which still leaves a couple questions but it I suppose it does add another possibility. Edited August 20, 2015 by nico_venster 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.