sanostol Posted March 1, 2011 Share Posted March 1, 2011 i made a gasresize for my smokecontainer, but the vorticles are not updateing the new dimension. i tried to add "vorticles" into the extrafields parameter of teh gasresizefluid dop but no succes, any ideas? Martin Quote Link to comment Share on other sites More sharing options...
ikarus Posted March 1, 2011 Share Posted March 1, 2011 Make a sop solver, call it vorticlebbox. Inside, import your fluid's density field, attach a bound node to it. Then, in the recycle vorticles node reference the bbox and centroid of the vorticlebbox in the parameters. blamo (dont have houdini with me at the moment) Quote Link to comment Share on other sites More sharing options...
sanostol Posted March 4, 2011 Author Share Posted March 4, 2011 hey, thanks a lot, but it seems to get ultra slow and has not the effect that it should have. probably a user bug:) Quote Link to comment Share on other sites More sharing options...
Kappy Posted April 2, 2011 Share Posted April 2, 2011 I just had to do this the other day, and it turned out to be pretty simple. Just referencing the new bbox in the vorticlerecycle node won't really cut it - that always keeps the number of vorticles constant. If you want to grow your container over time (which is usually the case), you've got to keep adding a proportional number of vorticles to your sim whenever the container gets bigger. To do that, I just unlocked the vorticlerecycle node and put the necessary bits into its internal Sop Solver. This involves (1) finding the part of your container that was added over the last frame, and (2) finding the number of vorticles to add. To calculate the number of vorticles, I just determined how many "vorticles per unit cubed" to maintain, calculated what that number should be based on the new container dimensions, and subtracted the number of pre-existing vorticles from that. I don't know if that makes sense, but if it's helpful to anyone, I've attached an example file. -James vorticle_resize_test.hip Quote Link to comment Share on other sites More sharing options...
ikarus Posted April 2, 2011 Share Posted April 2, 2011 great addition to the solution! 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.