MADjestic Posted November 5, 2006 Share Posted November 5, 2006 Hi, folks, I think I have done that before, but I can Quote Link to comment Share on other sites More sharing options...
sibarrick Posted November 5, 2006 Share Posted November 5, 2006 I think your assumption is wrong. When a sop recooks it gets its values from the previous sop in the chain not from the previous frame. Unless this is a pop node in which case that may not be true, i've never written a pop node, but since they are simulations I could well imagine they work that way. In this simple case it seems like you ought to be able to get the current frame and multiple that by your step amount and add that instead, but I suspect this is just an example for something more complex? Quote Link to comment Share on other sites More sharing options...
MADjestic Posted November 5, 2006 Author Share Posted November 5, 2006 Thanks, Simon for you reply, This is indeed just an illustration of the sort of problem I have, but after taking a gulp of fresh frosty air in the local park I thought the situation over and came exactly to the conclusions that you suggested. Probably the problem is that, though I am working on fluid simulation, I do it on SOPs level (seemed easiest for me to implement) – the whole thing kind of works, but I’ve got a couple of assumptions to check. Concerning this “previous frame based” approach – I think that saving the result of the current frame (result_$F) and then reading it the next frame (result_$F-1) can be a workaround – I’ll check this now. bzbzbz PS. maybe it would be more natural to code DOPs, but I’ve never coded DOPs before. Maybe next step?.. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted November 5, 2006 Share Posted November 5, 2006 I think although it is doable to simulate in sops, you will always be fighting the system. Much better to try and work in pops or indeed dops. Maybe you could get around it by using the sop solver?.... and therefore write what you need in sops but do the simulation in dops, if you see what I mean. Quote Link to comment Share on other sites More sharing options...
ivan Posted November 7, 2006 Share Posted November 7, 2006 just save a gdp to your sop node, and store your last frame geometry in it. 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.