Jump to content
ela1995

pop rbd scale over time

Recommended Posts

I have a DOP Network with multi solver, which spawn rbd sphere with pop solver. How do I make the size of the sphere small at the source, then become bigger as the current size when it touches the ground.

 

Screen Shot 2021-08-14 at 3.50.32 AM.png

pop_rbd.hip

Share this post


Link to post
Share on other sites

Hi there,

Try putting a Sop Solver between the pop solver and bullet solver. Then in there, a primitive sop, turn on transformations. and use a fit expression with @age to scale them over time starting from when each particle is born. Hope that helps.

Share this post


Link to post
Share on other sites

If you want Packed RBDs to grow over time, you need to do two things: scale up the transform intrinsic attribute, and force the solver to recalculate collision geometry.

You can do all this in a Geometry Wrangle or POP Wrangle, it's faster than a SOP Solver.

matrix3 xf = primintrinsic(0, "transform", @ptnum);

scale(xf, 1.02);

setprimintrinsic(0, "transform", @ptnum, xf);

i@id = -1; // force collision recompute

 

  • Like 1

Share this post


Link to post
Share on other sites
On 9/5/2021 at 8:25 PM, toadstorm said:

i@id = -1; // force collision recompute

that's the line of the year for me :) 

Thanks Henry!

Share this post


Link to post
Share on other sites

Note that you don't need to do this anymore as of Houdini 19! You can just set `scale` or `pscale` point attributes during the simulation. They'll scale the transforms relative to the `resttransform` that's automatically generated on the first timestep of the simulation.

Share this post


Link to post
Share on other sites

hmmm ... that's strange, as my setup isn't working without this line, actually using pscale attribute. In order to make it works we had to add this line at the end of the geo wrangle ... maybe is something related to this specific release, 19.0.561, not sure as we can't use newer version for Arnold compatibility, but I'll do a test with a newer 19.0 release on my home pc.

Thanks for the advice :) 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×