Making wine stay level in glass automatically
Moderators: Víctor Paredes, Belgarath, slowtiger
- SpaceBoy64
- Posts: 321
- Joined: Wed Sep 16, 2009 8:54 pm
- Location: Columbus
- Contact:
Making wine stay level in glass automatically
Is there a way to use physics to make wine stay level in a glass? and slosh around procedurally?
Thanks,
-Don
Thanks,
-Don
- synthsin75
- Posts: 10253
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Making wine stay level in glass automatically
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.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Making wine stay level in glass automatically
You could also use physics and threshold
Re: Making wine stay level in glass automatically
Bit syrupy but it works, wouldn't use it for extended scenes, Synth's method is much better for that , depends on the scene.


- SpaceBoy64
- Posts: 321
- Joined: Wed Sep 16, 2009 8:54 pm
- Location: Columbus
- Contact:
Re: Making wine stay level in glass automatically
Looks neat, but how did you do it?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.
I think I'll investigate the bones method.
Thanks!
- SpaceBoy64
- Posts: 321
- Joined: Wed Sep 16, 2009 8:54 pm
- Location: Columbus
- Contact:
Re: Making wine stay level in glass automatically
Thanks! I'm not using masking, but from what I remember, I think I could still do something like that.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.
https://www.youtube.com/watch?v=eJbtCpBu6aU
- synthsin75
- Posts: 10253
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Making wine stay level in glass automatically
Might be more difficult without masking.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- SpaceBoy64
- Posts: 321
- Joined: Wed Sep 16, 2009 8:54 pm
- Location: Columbus
- Contact:
Re: Making wine stay level in glass automatically
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!
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!
- synthsin75
- Posts: 10253
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Making wine stay level in glass automatically
That's pretty effective. Good job.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- SpaceBoy64
- Posts: 321
- Joined: Wed Sep 16, 2009 8:54 pm
- Location: Columbus
- Contact:
Re: Making wine stay level in glass automatically
Very good method. Simple, effective.
Re: Making wine stay level in glass automatically
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, 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
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 .
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
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.
- SpaceBoy64
- Posts: 321
- Joined: Wed Sep 16, 2009 8:54 pm
- Location: Columbus
- Contact:
Re: Making wine stay level in glass automatically
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.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 .
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