Page 1 of 2

Making wine stay level in glass automatically

Posted: Fri Mar 23, 2018 2:12 am
by SpaceBoy64
Is there a way to use physics to make wine stay level in a glass? and slosh around procedurally?

Thanks,
-Don

Re: Making wine stay level in glass automatically

Posted: Fri Mar 23, 2018 2:49 am
by synthsin75
Assuming you are masking the wine to the glass, a bone with independent angle can keep it level. And a dynamic bone used as a smart bone should be able to handle the sloshing.

Re: Making wine stay level in glass automatically

Posted: Fri Mar 23, 2018 4:39 am
by chucky
You could also use physics and threshold

Re: Making wine stay level in glass automatically

Posted: Fri Mar 23, 2018 2:34 pm
by chucky
Bit syrupy but it works, wouldn't use it for extended scenes, Synth's method is much better for that , depends on the scene.
Image

Re: Making wine stay level in glass automatically

Posted: Fri Mar 23, 2018 10:07 pm
by SpaceBoy64
chucky wrote:Bit syrupy but it works, wouldn't use it for extended scenes, Synth's method is much better for that , depends on the scene.
Image
Looks neat, but how did you do it?

I think I'll investigate the bones method.

Thanks!

Re: Making wine stay level in glass automatically

Posted: Fri Mar 23, 2018 10:11 pm
by SpaceBoy64
synthsin75 wrote:Assuming you are masking the wine to the glass, a bone with independent angle can keep it level. And a dynamic bone used as a smart bone should be able to handle the sloshing.
Thanks! I'm not using masking, but from what I remember, I think I could still do something like that.

https://www.youtube.com/watch?v=eJbtCpBu6aU

Re: Making wine stay level in glass automatically

Posted: Fri Mar 23, 2018 10:32 pm
by synthsin75
Might be more difficult without masking.

Re: Making wine stay level in glass automatically

Posted: Sat Mar 24, 2018 12:40 am
by SpaceBoy64
I am still using version 9, so I don't have the Independent Angle feature. I feel like there used to be a work around for this, but I can't remember what it was.

Anyway, I came up with a solution using bones, and smart bone actions that I'm fairly happy with. I bound the top points of the wine surface to a smart bone, parented to another bone I can control manually, which could be used with Independent Angle in newer versions.

Here it is. I decided I would share this with the group:
https://drive.google.com/file/d/1eTNWy_ ... sp=sharing

Thanks for the suggestions!

Re: Making wine stay level in glass automatically

Posted: Sat Mar 24, 2018 12:53 am
by synthsin75
That's pretty effective. Good job.

Re: Making wine stay level in glass automatically

Posted: Sat Mar 24, 2018 3:15 am
by SpaceBoy64
Thanks! Here it is added to my character.

https://www.youtube.com/watch?v=F18iiRqtP08

Re: Making wine stay level in glass automatically

Posted: Sat Mar 24, 2018 6:42 am
by chucky
Very good method. Simple, effective.

Re: Making wine stay level in glass automatically

Posted: Sat Mar 24, 2018 3:21 pm
by pihms
It's amazing to see what everyone has created. I was just working on that same idea yesterday, but just used a smart bone dial to adjust the liquid as the glass was tipped one way or the other. I would like to learn both methods. Thanks for sharing the idea Synthsin75, Don for the file.

Chucky, what an awesome job with the glass and liquid! Is the glass a vector made in Moho? How do you make the liquid? The liquid properties can make a big difference in many types of animations.

Re: Making wine stay level in glass automatically

Posted: Sat Mar 24, 2018 3:28 pm
by chucky
Everything but the background is a moho vector.
For the liquid I used lots of little circles with physics applied then I used layer blur with threshold applied , then coloured the whole layer.

That's it .

Re: Making wine stay level in glass automatically

Posted: Sat Mar 24, 2018 8:23 pm
by pihms
Thanks! I had thought about the circles/shapes but never bothered thinking that it would be too intensive for the animation as well as not looking very natural. You made it appear to have a more natural look. It'll give me something to play with and experiment with.

Re: Making wine stay level in glass automatically

Posted: Sat Mar 24, 2018 10:29 pm
by SpaceBoy64
chucky wrote: For the liquid I used lots of little circles with physics applied then I used layer blur with threshold applied , then coloured the whole layer.

That's it .
Thanks. That's sort of what I figured you did. I tried that though, and all my circles either bounced out of the glass or continued spinning around like electrons. I changed the settings numerous times. I tried various different combinations, but nothing seemed to change much at all.

Could you share what settings you used?
I'm not sure I'll use that method in this, but it would be good to know.

I have to make my character fill her glass, then drink the entire glass of wine next.
Are there any tutorials on that?

Thanks!
-Don