I am creating an animation involving a bottle of beer which will be animated using a simple skeleton rig. I need the liquid inside the bottle to very simply animate as if it is rocking from side to side, no pouring or splashing, just rocking. My initial idea of using planes as boolean objects constrained to the skeletons position so that the fluid would stay flat when the bottle was deformed or tilted didn't work because of the unpredictability of the boolean operation (faces disappeared and deformed).
I am wondering if there is a way of using a similar method without the boolean operation. Is there a way I can use nodes to tell an object to display only the geometry that is below a certain other object and vice versa for above? Using the height field node perhaps? I need to be able to control the rocking of the fluid also.
Any other ideas how I could do this? Would a MEL if else statement work? If so could someone give me a few pointers?
Would be awesome if i could get some help on this.
Thanks for the suggestions guys. I've sorted the issue I was having with the boolean now so I am going to go with my original planned method. The problem was that I was using planes instead of cubes to perform the boolean operation. Seems obvious now but hey, I learned somthing new and its working so im happy.