rich_lord Posted January 12, 2012 Share Posted January 12, 2012 Hello! First post here - i`m a new Houdini person! I have a question about the best way to blend between two surfaces with equal point numbers. I can of course use the regular Blend SOPS, but i`d like to blend between the surfaces based on a point attribute. For example, if the point attribute is 0 - blend the point 100percent from surface A if the point attribute is 1 - blend this point 100percent from surface B if the point attribute is 0.5 - blend 50percent between surface A and surface B I`ve looked at a few ways to do this. Alot of the SOPS id like to use to deform this geometry don`t seen to accept different values for each individual point number. I.e - the mountain SOP Thank you! Hope this isn`t too basic, but fiddling about for ours just is not working! Nice to meet you all. 1 Quote Link to comment Share on other sites More sharing options...
Macha Posted January 12, 2012 Share Posted January 12, 2012 How about you draw vectors between each pair of points and then displace along them with the attribute as a scale. Quote Link to comment Share on other sites More sharing options...
rich_lord Posted January 12, 2012 Author Share Posted January 12, 2012 Certainly sounds like it should work. Im not super clear on how to how to create the vectors between the points in Houdini. Would this be the work flow? Create a new vector on each point which represents the direction to the equivalent point on the other surface. (I guess id need the point expression or something similar to read from the second surface) Then use the point SOP to move each individual point along that vector based on my original point attribute. Hmmm, thanks for the tip! Im certainly going to have a crack at this..... Gives me some ideas.. Quote Link to comment Share on other sites More sharing options...
magneto Posted January 12, 2012 Share Posted January 12, 2012 I don't know how to solve your problem, but your vimeo channel is wicked Quote Link to comment Share on other sites More sharing options...
rich_lord Posted January 12, 2012 Author Share Posted January 12, 2012 (edited) Too kind Magneto! If only I got more time to fiddle with my videos. Haha - of course I assume you are talking about Macha`s channel - oh boy thems some videos! Edited January 12, 2012 by rich_lord Quote Link to comment Share on other sites More sharing options...
Macha Posted January 12, 2012 Share Posted January 12, 2012 To get the vectors make a vopsop. Use the first input for geo1. Use the second input for geo, and inside use import_attribute, set variable to P and select Input Index1. Subtract those and you have your vectors. Quote Link to comment Share on other sites More sharing options...
3dbeing Posted January 12, 2012 Share Posted January 12, 2012 You could just use the mix vop plug in the 2 P outputs and this will blend between the 2 point positions. I realize you asked for a vector but it seems this maybe what you are looking for. Of course point count won't exactly be enough, they will need identical point order as well... Quote Link to comment Share on other sites More sharing options...
3dbeing Posted January 12, 2012 Share Posted January 12, 2012 here is an example... blendShape_01_3db.hipnc Quote Link to comment Share on other sites More sharing options...
magneto Posted January 12, 2012 Share Posted January 12, 2012 Too kind Magneto! If only I got more time to fiddle with my videos. Haha - of course I assume you are talking about Macha`s channel - oh boy thems some videos! No I was talking about yours. Some good stuff in there. I just checked Macha's channel too, looks like some crazy stuff there too Quote Link to comment Share on other sites More sharing options...
michael Posted January 12, 2012 Share Posted January 12, 2012 why not just use a point SOP? see file attrib_blend.hip Quote Link to comment Share on other sites More sharing options...
rich_lord Posted January 12, 2012 Author Share Posted January 12, 2012 This is all super useful guys. I`m off to work now, but i`ll try these different techniques tonight and post my results. Thanks so much! Quote Link to comment Share on other sites More sharing options...
3dbeing Posted January 12, 2012 Share Posted January 12, 2012 why not just use a point SOP? My response would be; speed. Quote Link to comment Share on other sites More sharing options...
rich_lord Posted January 12, 2012 Author Share Posted January 12, 2012 3dbeing - Thanks very much, your method worked great. At first I couldn`t get it to work, but I think maybe I was importing my bias attribute incorrectly. (forgot to set it to be a float) Point order and Point number are exactly the same in my example. Macha - i`m going to try the float idea too, just to see if I can create that in VOPs. So helpful chaps - Thanks to you all! 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.