Jump to content

Retime Sim Cache


breadbox

Recommended Posts

Im wondering if its possible to retime a simulation cache Per Particle.

so that I can offset the time of a region of particles but not another region.

Ideally could control this with a falloff attribute. so If i colored gave all the particles in a region a red color based on the red color would control how many frames forward or back in time each particle was in time.

hopefully I have explain that well enough.

Link to comment
Share on other sites

You can use a mix node in a vop sop.

I've made you a quick scene using a grid with two different positions in Y, which are blended between the two using the red colour (altered by a ramp parameter). Obviously you're going to have to take changing point numbers into account with ID's etc, but I think this technique would work for you...

Christian

mixPos.hip

Link to comment
Share on other sites

Thats a great example thanks,

I think I'm trying for less of mixing between pos-A and pos-B and more of a retiming effect where each particle/point ID would get a frame value assigned to it based on a color or other attribute.

maybe a way through chops? I guess it might be lag based on point color?

although now that I think about it, this could get super slow with a simulation of around 500K points.

Edited by breadbox
Link to comment
Share on other sites

Well yes but if instead of moving the points like I did you retimed them, left being normal, right being slower/faster, then blended between the point positions, you'd have what you want.

But you could also use chops (slow on large particle counts).

You might also be able to give each point an attribute and use that in the time offset ($F * $HOWMUCH) etc..

Link to comment
Share on other sites

yea after trying it a bit this method works pretty well and is really fast.

I tried it out on a Houdini simulation and that works out because the point numbers are not changing per frame.

with a real flow simulation however the point number changes on every frame yet the point ID stays consistent, so i'm trying to sort them based on the ID.

in the sort sop I'm trying this:

point("../NULL", $PT, ID, 0)

but its not quite working.

EDIT:

opps

its this

point("../NULL", $PT, id, 0)

doh!

Edited by breadbox
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...