Thursday, 26 January 2012

Jelly on a plate served by Houdini

I was playing around with the new fluid solver in Houdini 11. I came up with a pretty cool jelly animation by adjusting the viscosity settings and collision tolerances.





Here's the basic setup and settings












The basic set up
   Geo:
      basic box shape with a smoothing operation to create the shape
      cutter geo - which we'll reference into the collision object below

   Dynamics
        The AutoDop network - which is created from the shelf
        The output mesh - i.e. the dough/jelly shape with dynamics applied
        The ground plane

    Lights:
          Lights and shaders live here

Dynamics - The AutoDop network



From left to right:
    left branch - : the cutter which needs two nodes to make it cut through the jelly
    middle branch - the ground plane for the jelly to land/sit on
    The right branch: the particle fluid feeds into the solver (settings below)
    At the bottom a file node so we can cache it easily





The particle fluid object nde

I ramped up the Rest Density to viscosity to really high numbers, this helps the Jelly sit in place and not collapse as it lands.

You can see in the SOP path that it's pointed to the obj/dough_shape that we made at the start.

















on the solver I found these useful elasticity and plasticity settings that keeps the fluid  stuck together when the cutter comes into contact, watch the video closely and you'll see that the fluid tries to adhere itself back together - you can see that in the image below how the particles stick together.
Tip: keep the gas constant set at 400, changing this too much causes unpredictable results - the Houdini docs recommend a value of 400, so best not to stray too far from that.

















Animation

This is very quick - the only piece of animation was on the cutter which I used to cut the jelly.  The sim will respond to any kind of animation that you can throw on the cutter.










Shading

I initially tried a clay shader as I was trying to to make dough, I wasn't overly pleased with the results so I switched it to a glass shader with a tinge of red - hence the jelly look.

under the displacement tab I added ramp (a simple red to green) and a small amount of displacement.  You can see this result at the start of the video where the playblast is in the top corner.


In the noise tab I checked on the 'Do Noise' button, I bumped up the frequency and turbulence to create that nice texture on the jelly.





























The lighting came out really nicely casting a red shadow with all the noise coming through on the ground plane.  I think it took about two to three minutes to render each frame - then again I had the render farm to myself so it was really quick.  Hope  you like it.

0 comments:

Post a Comment

VFX and CG from Film Producers and Filmmakers

My book 'VFX and CG from Film Producers and Filmmakers' will teach you how you can create your own animated movie and add CG/VFX into your own film


Latest reviews for VFX & CG Survival Guide for Producers and Filmmakers from Amazon




you can buy your copy here

Paperback


US and International -> http://www.amazon.com/Survival-Producers-Filmmakers-Guides-Volume/dp/1484021541/
UK -> http://www.amazon.co.uk/Survival-Producers-Filmmakers-Guides-Volume/dp/1484021541/
Austria and Germany -> http://www.amazon.de/Survival-Producers-Filmmakers-Guides-Volume/dp/1484021541/
France -> http://www.amazon.fr/Survival-Producers-Filmmakers-Guides-Volume/dp/1484021541/
Italy -> http://www.amazon.it/Survival-Producers-Filmmakers-Guides-Volume/dp/1484021541/
Spain -> http://www.amazon.es/Survival-Producers-Filmmakers-Guides-Volume/dp/1484021541/

Kindle



US and International -> http://www.amazon.com/Survival-Producers-Filmmakers-Guides-ebook/dp/B00BDV8GY2
UK -> http://www.amazon.co.uk/Survival-Producers-Filmmakers-Guides-ebook/dp/B00BDV8GY2
India -> http://www.amazon.in/Survival-Producers-makers-Guides-ebook/dp/B00BDV8GY2/
Brazil -> http://www.amazon.com.br/kindle/dp/B00BDV8GY2/
Mexico -> http://www.amazon.com.mx/kindle/dp/B00BDV8GY2/
Canada -> http://www.amazon.ca/Survival-Producers-Filmmakers-Guides-ebook/dp/B00BDV8GY2
Austria and Germany -> http://www.amazon.de/Survival-Producers-Filmmakers-Guides-ebook/dp/B00BDV8GY2/
France -> http://www.amazon.fr/Survival-Producers-Filmmakers-Guides-ebook/dp/B00BDV8GY2/
Italy -> http://www.amazon.it/Survival-Producers-Filmmakers-Guides-ebook/dp/B00BDV8GY2/
Japan -> http://www.amazon.co.jp/Survival-Producers-Filmmakers-Guides-ebook/dp/B00BDV8GY2/
Spain -> http://www.amazon.es/Survival-Producers-Filmmakers-Guides-ebook/dp/B00BDV8GY2/


*BTW you don't need to own a kindle to read this, you can download a kindle app for you smart phone or tablet from your app store or 
or get the kindle cloud reader which will allow you to read kindle in your web browser here ->https://read.amazon.com/about


Thanks