markb Posted March 23, 2009 Share Posted March 23, 2009 Hi everybody, Wondering about the best way to accumulated a deformation over time in some additive manner. I'm using it on a variation of a footprint deformer. At the moment I'm using a RAY SOP to get my data and LAG CHOP to "accumulate" but it's kind of a cheat and will only work for limited situations. I'm new to all this so other solutions are eluding me. I see this kind of thing done in Houdini all the time so I'm sure it's fairly straightforward. Any help is much appreciated! Mark Quote Link to comment Share on other sites More sharing options...
SpencerL Posted March 23, 2009 Share Posted March 23, 2009 Hi everybody,Wondering about the best way to accumulated a deformation over time in some additive manner. I'm using it on a variation of a footprint deformer. At the moment I'm using a RAY SOP to get my data and LAG CHOP to "accumulate" but it's kind of a cheat and will only work for limited situations. I'm new to all this so other solutions are eluding me. I see this kind of thing done in Houdini all the time so I'm sure it's fairly straightforward. Any help is much appreciated! Mark have a look at the Sop Solver in DOPs. There are a couple examples in there which demonstrate a feedback loop. Quote Link to comment Share on other sites More sharing options...
markb Posted March 23, 2009 Author Share Posted March 23, 2009 Ah! This looks perfect! Thanks Spencer. Quote Link to comment Share on other sites More sharing options...
edward Posted March 24, 2009 Share Posted March 24, 2009 There's also the ForEach SOP as well. Quote Link to comment Share on other sites More sharing options...
curveU Posted March 24, 2009 Share Posted March 24, 2009 Both approaches will work, but neither of them is intuitive. Could anyone here suggest a pure SOP approach for this ? Thanks, Quote Link to comment Share on other sites More sharing options...
stevenong Posted March 24, 2009 Share Posted March 24, 2009 Isn't the ForEach SOP a pure SOP approach? As Spencer mentioned, you need a feedback loop so you have to use the ForEach SOP or SOP Solver. There's also a Feedback SOP in the proto install. Cheers! steven Quote Link to comment Share on other sites More sharing options...
markb Posted March 25, 2009 Author Share Posted March 25, 2009 I'm wondering if by using a ForEach SOP you mean I would simply rebuild the deforms up to the current frame, accumulating them myself. That does sound pretty straight forward if it's possible. Quote Link to comment Share on other sites More sharing options...
Hoegaard Posted April 24, 2009 Share Posted April 24, 2009 Trying a similar task myself right now, with a sphere that extrudes a random primitive face for each frame. That portion of the setup works fine, with a random primitive chosen every frame and then a polyextrude SOP pushing it out, but I can't get any sort of iterative feedback accumulating the result into a big mess. I've tried the Feedback proto SOP but the lack of docs makes it very cryptic. The For Each does repeat the operation, but no accumulation so far. Any thoughts? Quote Link to comment Share on other sites More sharing options...
hoknamahn Posted April 25, 2009 Share Posted April 25, 2009 This is example of a simple feedback loop. Quote Link to comment Share on other sites More sharing options...
markb Posted May 20, 2009 Author Share Posted May 20, 2009 I'm finally able to get back to this. Here's a quick example pic. Sphere is animated, pushing at the grid with ray node. Trying to get a mole trench affect with it, by accumulating the deform. Can anyone tell me what I might be missing here? Thanks! Quote Link to comment Share on other sites More sharing options...
markb Posted May 20, 2009 Author Share Posted May 20, 2009 Sorry, here's the little hip file in case anyone was interested. Thanks again. footForeach.01.hipnc Quote Link to comment Share on other sites More sharing options...
sam.h Posted May 21, 2009 Share Posted May 21, 2009 Sorry, here's the little hip file in case anyone was interested. Thanks again.footForeach.01.hipnc I have found it more intuitive to use a sop solver like in the attached file. If you want the foreach way to work, load the swiss cheese example and compare your settings to that, foreach and feedback loop stuff is frustrating sometimes .. :/ shancock_deformFeedback_v001_001_sk.hip Quote Link to comment Share on other sites More sharing options...
sam.h Posted May 21, 2009 Share Posted May 21, 2009 I have found it more intuitive to use a sop solver like in the attached file.If you want the foreach way to work, load the swiss cheese example and compare your settings to that, foreach and feedback loop stuff is frustrating sometimes .. :/ Oops! I got a bit mixed up there! How would the foreach SOP work at all for this? Quote Link to comment Share on other sites More sharing options...
markb Posted May 25, 2009 Author Share Posted May 25, 2009 Oops! I got a bit mixed up there! How would the foreach SOP work at all for this? Hey thanks, Sam, for setting all that up. I'm trying to wrap my head around it now! Surely this kind of looping/feedback is used all the time for tons of things using many different methods. Mark Quote Link to comment Share on other sites More sharing options...
markb Posted May 25, 2009 Author Share Posted May 25, 2009 I need to chase down a way to use the foreach sop here, if just to really learn it. I will learn how to repeat this with DOPS and if I ever figure out what a proto install is, I'll look at the feedback loop as well. The only problem in my little network above is that although I AM calculating the ray deform once for each frame up to the current, I'm NOT actually sampling the deformation AT THAT POINT IN TIME. The framehead doesn't move. Heh heh. So I get the same result for each iteration. So the question is... How might I tell houdini to sample ALONG the timeline? Is that a CHOPS thing? A lag node? Quote Link to comment Share on other sites More sharing options...
sam.h Posted May 26, 2009 Share Posted May 26, 2009 I need to chase down a way to use the foreach sop here, if just to really learn it. I will learn how to repeat this with DOPS and if I ever figure out what a proto install is, I'll look at the feedback loop as well. The only problem in my little network above is that although I AM calculating the ray deform once for each frame up to the current, I'm NOT actually sampling the deformation AT THAT POINT IN TIME. The framehead doesn't move. Heh heh. So I get the same result for each iteration. So the question is... How might I tell houdini to sample ALONG the timeline? Is that a CHOPS thing? A lag node? As far as I know, the foreach SOP doesn't get the feedback input from the last timestep, so it won't be possible with just that.... you can just use a file node at the end of your tree to write the current frame and then a file node at the start to read in the previous frame. This is really what DOPs are for though, and with DOPs you get the benefit of substeps as well.... I could be wrong about the foreach SOP... Quote Link to comment Share on other sites More sharing options...
anim Posted May 26, 2009 Share Posted May 26, 2009 I need to chase down a way to use the foreach sop here, if just to really learn it. I will learn how to repeat this with DOPS and if I ever figure out what a proto install is, I'll look at the feedback loop as well. ... why are you trying to do this with forEach SOP? it can be easily done(even with substeps) see the attacheh file, but it will build every frame from the ground it means at frame 1 it will be lighting fast at frame 2 two times slower frame 100, 100times slower but if you want to play this or cache it will take you 1 + 2 + 3 + ... + 100 iterations to get to frame 100, which means 5050 iterations and when you are using 10 substeps this is equivalent to 1000 frames which will be 500500 iterations as opposed to 1000 in sop solver or feedback SOP so you better take a look at sop solver, it is very straightforward and very cool. forEach_accumulate_substeps.01.hipnc Quote Link to comment Share on other sites More sharing options...
markb Posted May 26, 2009 Author Share Posted May 26, 2009 why are you trying to do this with forEach SOP?it can be easily done(even with substeps) see the attacheh file, but it will build every frame from the ground it means at frame 1 it will be lighting fast at frame 2 two times slower frame 100, 100times slower but if you want to play this or cache it will take you 1 + 2 + 3 + ... + 100 iterations to get to frame 100, which means 5050 iterations and when you are using 10 substeps this is equivalent to 1000 frames which will be 500500 iterations as opposed to 1000 in sop solver or feedback SOP so you better take a look at sop solver, it is very straightforward and very cool. Ah! Thank you for that! It seemed that it was more of a "many paths to the same result" until you mentioned this! SopSolver it is then. I'll save the foreach for another time, another problem. Thanks again guys! Back to Sam's SopSolver example for me. 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.