Jump to content
caskal

Vellum loop?

Recommended Posts

Hey magicians,

I was requested to create some cloth in motion assets, I'm working with vellum, but having troubles to loop it as client requested.

So far I used a blend shapes with first and end frame at the end, but the loop is quite noticeable since it reverses the blend at the end to start again.

Here's a sample of the asset I need to loop:

2018-12-06_18-26-12.gif.cb071da30a404508ee996e77ad3abf4a.gif

Here's another idea I had, I'm going to test it now:

1) Having the initial frame with cloth shape
2) Group the edges of that
3) Pin constraint the edges to vellum
4) Animate the edges having first and last frame in same state
 
Any tips to loop vellum?
 
Thanks!
Edited by caskal

Share this post


Link to post
Share on other sites

I did this in Max MCG:

The point I wanna bring up is....surely you'd want to blend MORE than just first/last frames ? It has to be several frames so it's not soooooooo jarring. I blended the last 'few' frames so that say, the last 15 frames, they gradually 'morph' into the state of the 1st frame.

 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

here's my proof of concept.

- sim to see the NON LOOPING, obviously it is not looping.

- then go to LOOPING:

clamp(1 - ($FEND - $F)/15,0,0.9)

the 15 is to blend the last 15 frames. The 0.9 is used instead of 1 is so that we don't have the 1st/last frames exactly the same. Now granted, you can still see the 'transition' during the last 15 frames...but it is not an instant jarring switch between 1st/last frames as in NON LOOPING case...(you'll have to spend time finding the sweetspot of blend duration)

(the point SOP preset is Morph to 2nd Input)

vu_loopvellum.hiplc

Edited by Noobini
  • Thanks 1

Share this post


Link to post
Share on other sites

did this on a job recently. here's the process more or less:

  1. split your cache about in half and timeshift / timewarp each half so that the first half becomes the second half, and vice versa. this means that the first and last frames are now identical and will loop. now you just have to blend the middle part.
  2. overlap each half of the cache in time so that you have some room to blend.
  3. keyframe a blendshape or the equivalent so that the caches blend from one to the other during this overlap period.
  4. to make this less jarring, you can animate a "blend" point attribute that wipes across the mesh from 0 to 1. then use a wrangle to blend your point positions from the retimed cache to the blend shaped positions:
    @P = lerp(@P, blended_P, @blendAttr);

    this works best if the wipe moves in the same direction as the prevailing ripples in the cloth.

  5. you might need to do a detangle afterwards, or do a secondary vellum sim during the blend shape animation in order to detangle parts that end up interpenetrating during the blend. totally depends on your original sim.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Hey @Noobini thanks a lot for the tips and the hip, I was trying to do that multiple frames blending using like 10 timeshifts with no luck :D then I analized your file, didn't know about that Stash node, pretty handy!

Played with the Attribute expression using more than 15 frames and its giving me much better results than the method I used before (blending 2 frames only). I still have to play trying to have the initial and end state as close as possible.

2018-12-07_13-46-37.gif.83e8d703544206a31724588700b2e570.gif

@kiryha thanks for the tutorial! I saw that in the past but didn't think about adapting to this, I'll give a shot.

@toadstorm thanks for the detailed process, will check that one too and see wich adapts better to this loop.

Cheers guys!

 

 

  • Like 1

Share this post


Link to post
Share on other sites
5 hours ago, caskal said:

Hey @Noobini thanks a lot for the tips and the hip, I was trying to do that multiple frames blending using like 10 timeshifts with no luck :D then I analized your file, didn't know about that Stash node, pretty handy!

Played with the Attribute expression using more than 15 frames and its giving me much better results than the method I used before (blending 2 frames only). I still have to play trying to have the initial and end state as close as possible.

2018-12-07_13-46-37.gif.83e8d703544206a31724588700b2e570.gif

@kiryha thanks for the tutorial! I saw that in the past but didn't think about adapting to this, I'll give a shot.

@toadstorm thanks for the detailed process, will check that one too and see wich adapts better to this loop.

Cheers guys!

 

 

my thoughts are these:

- if you plan to blend the last 15 frames...then run a non-loop sim first, then pick the initial frame as somewhere about 15 frames from the end.....ie. it will not be DRASTICALLY different from the last frame. Of course, once you picked your initial frame and rerun the sim, you'll still have to pray hard that it turns out similar to your previous run.

- I think toadstorm's approach is same as the Gamedev's shelf tool. To me if you spend a lot of time tweaking your sim, then you want to loop it and this will compromise your orig result because of blending....so I want to compromise the least amount...ie. some frames at one end rather than mirroring 2 ends and blend middle. But who knows, it may give you a better look, give the Gamedev one a go.

- yeah the stash is great, you'll just have to get used to run some sim, scrub to where you like the 'shape', connect the result from bottom back up to stash, update stash, disconnect input of stash, rerun....rinse repeat....bit confusing at first...but great once you've grasped the workflow.

  • Thanks 1

Share this post


Link to post
Share on other sites

@Noobini yeah that was my main issue, praying so they don't look too different :D, agree on tweaking the sim too much. As for stash, I always used file cache or time shift but this is much better, I didn't understand how it worked when I opened your file so went to the help doc, this stash-sim-stash-sim workflow will come super handy to get cool results!

Thanks again!

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

×