dvelasco Posted August 18, 2020 Share Posted August 18, 2020 (edited) Hello! I am still very much getting acquainted with Houdini, but every time I need to use it I have a very specific purpose. This one has me stumped for now, but I am sure that someone versed in Houdini dynamics will resolve it very quickly! What I want to do is: fill a volume with spheres, make said spheres bounce off of each other on contact (like snooker balls), but also try and accommodate themselves onto the original shape (created by the volume). I have tried this with grains, but didn´t get too far. I am betting on doing it with particles: This path seems a lot more promising! I can get the ball´s pscale and id attributes, which will be a boon later on, when I need to swap the balls for different emojis (yes, it´s for a TV ad!). What I need to do: duplicate the current particle so I can use it as a "goal shape", with the same ids. This I can do. add an initial offset to the particles from the surface, ideally from the normals of the original geometry (or a smoothed copy). I can somewhat get it by tweaking the iso offset of the vdbtospheres node, but I worry that the IDs will be messed up. Ideally, I would add an offset to them, but not add any velocity. add a small amount of turbulence to the particles. This will eventually be animated to 0. make them collide with each other, based on their sphere geometry. The eventual geometry is basically spheres as well. make them try and reach their goal, and eventually settle down (a slider for this would be great!) Seems very achievable, but I need some light on how to make these connections! After that, I still will need to swap the spheres for 4 different groups of geometries, but I believe that I can glean information from tokeru.com (Emit_packed_prims_into_RBD_sim), and make it happen. Any help with this will be GREATLY appreciated! This is the scene file: C03_008_DVA.hip (if anyone is interested in taking a look at it!) cheers, Diego Edited August 18, 2020 by dvelasco Quote Link to comment Share on other sites More sharing options...
dvelasco Posted August 18, 2020 Author Share Posted August 18, 2020 Just an addendum - I the isooffset node would work perfectly for the "offset from surface" part of the problem, except that it resamples the volume if you change the offset, which foils that path. Quote Link to comment Share on other sites More sharing options...
dvelasco Posted August 18, 2020 Author Share Posted August 18, 2020 Got a great path from this link: Also, I will probably use the isooffset node, even if it´s just with an average position, as opposed to ids. Will try and work that in with the solution above! Seems very promising Who knows, maybe I´ll figure this out by myself... but still, any help would be greatly appreciated! I will update this thread with my findings as I progress. 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.