Making wine stay level in glass automatically

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
SpaceBoy64
Posts: 321
Joined: Wed Sep 16, 2009 8:54 pm
Location: Columbus
Contact:

Making wine stay level in glass automatically

Post by SpaceBoy64 »

Is there a way to use physics to make wine stay level in a glass? and slosh around procedurally?

Thanks,
-Don
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Making wine stay level in glass automatically

Post 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.
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Making wine stay level in glass automatically

Post by chucky »

You could also use physics and threshold
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Making wine stay level in glass automatically

Post 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
User avatar
SpaceBoy64
Posts: 321
Joined: Wed Sep 16, 2009 8:54 pm
Location: Columbus
Contact:

Re: Making wine stay level in glass automatically

Post 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!
User avatar
SpaceBoy64
Posts: 321
Joined: Wed Sep 16, 2009 8:54 pm
Location: Columbus
Contact:

Re: Making wine stay level in glass automatically

Post 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
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Making wine stay level in glass automatically

Post by synthsin75 »

Might be more difficult without masking.
User avatar
SpaceBoy64
Posts: 321
Joined: Wed Sep 16, 2009 8:54 pm
Location: Columbus
Contact:

Re: Making wine stay level in glass automatically

Post 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!
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Making wine stay level in glass automatically

Post by synthsin75 »

That's pretty effective. Good job.
User avatar
SpaceBoy64
Posts: 321
Joined: Wed Sep 16, 2009 8:54 pm
Location: Columbus
Contact:

Re: Making wine stay level in glass automatically

Post by SpaceBoy64 »

Thanks! Here it is added to my character.

https://www.youtube.com/watch?v=F18iiRqtP08
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Making wine stay level in glass automatically

Post by chucky »

Very good method. Simple, effective.
User avatar
pihms
Posts: 188
Joined: Sat Apr 18, 2009 9:52 pm

Re: Making wine stay level in glass automatically

Post 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.
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Making wine stay level in glass automatically

Post 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 .
User avatar
pihms
Posts: 188
Joined: Sat Apr 18, 2009 9:52 pm

Re: Making wine stay level in glass automatically

Post 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.
User avatar
SpaceBoy64
Posts: 321
Joined: Wed Sep 16, 2009 8:54 pm
Location: Columbus
Contact:

Re: Making wine stay level in glass automatically

Post 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
Post Reply