PDA

View Full Version : Simple moving glass with liquid < Please Help >



Remoc
04-28-2018, 02:50 AM
Hello Lightwavers,

I had a scene in which a character is holding a glass with red wine in it. As he talked his hand moved slightly and the wine wobble & leveled within the glass.
I did this from a tutorial that hung a box above (parented to) the glass using cloth dynamics. Then using DP_Kit Boolean shader node where the box intersected the liquid it produce a level plane.
However, DP Kit Boolean plugin no longer seems to work with LW 2018.

Has anyone got another solution for keeping a liquid in a held & moving glass. Doesn't have to be real simulated liquid, that seems overkill for the effect.
I prefer a LW vanilla solution, because I have been caught countless times with essential plugins breaking in new LW versions.

Any ideas are welcome.

Cheers,
Remoc

erikals
04-28-2018, 05:33 AM
i strongly recommend fluids simulators, they are so cheap these days

...made a small test though, download and tweak / experiment if you like  :]



https://youtu.be/xbj197ixAqE

Remoc
04-28-2018, 06:08 AM
Could you list some lightwave compatible fluid simulators that will (hopefully) be around for awhile. By cheap, what price USD ? do you mean.

Anyone else got a non-simulation solution?

Cheers,
Remc

Remoc
04-28-2018, 09:12 AM
Here is the Youtube link of the original solution. : https://www.youtube.com/watch?v=Is-cHMxtTMU

I also used DP kit, Boolean node to use the hanging box to cut the liquid in the glass, always keeping it level with a little wobble.
http://dpont.pagesperso-orange.fr/plugins/nodes/Additionnal_Nodes_2.html

As this plugin no longer works with LW 2018, I need a new "simple" solution. Dont really need a full fluid simulation to achieve this effect.

Remoc

erikals
04-28-2018, 12:43 PM
Could you list some lightwave compatible fluid simulators that will (hopefully) be around for awhile.
Hurley UP is $150 fluids and works in LW2018 and Very likely the LW updates beyond (LW2019/2020/2021...)
http://hurleyworks.com/portfolio-items/up


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


there is also $250 DeepRising Fluids
http://www.deepfxworld.com/deep-rising-fx.php

jwiede
04-28-2018, 03:12 PM
Worth noting that both of those are Windows-only solutions.

Remoc
04-28-2018, 06:30 PM
I have tried the demo, which displays a preview but not a final result. One thing I am worried about, that is not displayed in any of the available videos, is how well & quickly the liquid settles back into a nice flat plane.
Often simulation solution particles jitter and fidget a bit too much when they should instead quickly settle down.

djwaterman
04-29-2018, 02:22 AM
Perhaps just some morph mixing, creating a wine shape who's top surface has several different angles, and then key framing it. Or even a weighted top section controlled by a bone. I agree a fluid sim is probably over-kill, do you even notice these things when an actor is holding a glass of wine and moving around, I don't think I do, but I'd probably notice a fluid sim that isn't perfect.

Remoc
04-29-2018, 04:52 AM
Perhaps just some morph mixing, creating a wine shape who's top surface has several different angles, and then key framing it. Or even a weighted top section controlled by a bone. I agree a fluid sim is probably over-kill, do you even notice these things when an actor is holding a glass of wine and moving around, I don't think I do, but I'd probably notice a fluid sim that isn't perfect.

Yes, I could tilt the top of the wine plane 45 degrees on the X and Y axis to make four morphs. (this part is easy for me)
Then I need to hang something, a bone?, a non-rendered object? from the top of the wine glass that would wobble with gravity and level itself after movement.
And then obtain the Pitch and Bank data (possibly reverse this) and apply this somehow to the correct morphs.

Anyone got any ideas to which tool(s) I could use to do this?
If I can get this all to work I want to post this as a video tutorial for an easy liquid in a cup/glass solution.

Cheers,
Remoc

prometheus
04-29-2018, 05:16 AM
Worth noting that both of those are Windows-only solutions.

You are Not considering investing in a windows operative syste? also in regards to soo many plugins only working for windows? if you simply donīt like it, or if you do not wish to spend it or can not afford it or so? so be it..but I am
Just curious, and what made you to decide to go for Mac?
Personally I am a bif of baffled why someone who uses 3d software choose to go for Macs, maybe they are more comfortable with everything about it in general or other incitaments, but since I do not know the picture I can only ask myself and others ..Why?

XswampyX
04-29-2018, 12:03 PM
Hello Lightwavers,

I had a scene in which a character is holding a glass with red wine in it. As he talked his hand moved slightly and the wine wobble & leveled within the glass.
I did this from a tutorial that hung a box above (parented to) the glass using cloth dynamics. Then using DP_Kit Boolean shader node where the box intersected the liquid it produce a level plane.
However, DP Kit Boolean plugin no longer seems to work with LW 2018.

Has anyone got another solution for keeping a liquid in a held & moving glass. Doesn't have to be real simulated liquid, that seems overkill for the effect.
I prefer a LW vanilla solution, because I have been caught countless times with essential plugins breaking in new LW versions.

Any ideas are welcome.

Cheers,
Remoc

You can do surface booleans in native LW2018!

141454

Using the raycast geometry node.

141455

erikals
04-29-2018, 12:09 PM
cool, didn't know   :king:

MonroePoteet
04-29-2018, 01:18 PM
You can do surface booleans in native LW2018!

141454

Using the raycast geometry node.

141455

Nice! What is fed into the Clip input for the Box Surface? The Surface shown is the Ball (the clip object), can you post the node setup for the clipped Box?

Thanks,
mTp

XswampyX
04-29-2018, 01:40 PM
Nice! What is fed into the Clip input for the Box Surface? The Surface shown is the Ball (the clip object), can you post the node setup for the clipped Box?

Thanks,
mTp

Have a look. One of the surfaces might be confusing because I took the surface from one object and copied it to the other and just changed the logic node.
Oh and the ball has flipped polygons.

141456

Continuum
04-29-2018, 02:10 PM
Looks like a straight forward effect for a simulator. Maybe you could get this done with the demo version of Deep Rising FX v2.0 (http://www.deepfxworld.com/deep-rising-fx.php). Since you are aiming for something simple the particle limit shouldn't be a problem in the demo version. Though the frame limit may get in the way, depends.


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

raw-m
04-29-2018, 02:17 PM
Downloaded your scene, XswampyX, and it's not quite the same on my Mac. Do you know what that may be?

MonroePoteet
04-29-2018, 02:38 PM
Downloaded your scene, XswampyX, and it's not quite the same on my Mac. Do you know what that may be?

Whew! I thought it was just me! I think there must be some magic, global setting that I'm missing. I'm on Windows 7.

I'm sorry to say I've been wrestling with this for most of yesterday and this morning starting with ZTreem's setup in this thread (which took about 5 minutes to set up in LW2015):

http://forums.newtek.com/showthread.php?156145-Can-an-enclosed-3D-volume-e-g-a-sphere-be-used-as-a-procedural-shader-mask&p=1537719&viewfull=1#post1537719

- and always getting weird artifacts or Layout crashes in LW2018. My overall conclusion is that the "new" RayCast Geometry node is seriously broken in LW2018. It crashes regularly, requires that I provide a *single* direction for the ray (the LW2015 RayCast node didn't require this - I think it used something like each polygon's normal for the Ray Direction), and seems to have "Hit Test" positive way outside the actual volume.

Anyway, here's the render of the XswampyX scene on my Windows 7 machine:

141459

mTp

erikals
04-29-2018, 03:06 PM
might be a job for...

https://i.imgur.com/5jEi2Ve.png

XswampyX
04-29-2018, 03:10 PM
might be a job for...

https://i.imgur.com/5jEi2Ve.png

Yep. It's a bug in the node. Strange how LW2018 in windows 10 is "different" than in windows 7????

XswampyX
04-29-2018, 03:50 PM
Downloaded your scene, XswampyX, and it's not quite the same on my Mac. Do you know what that may be?

Just updated to LW 2018.0.3 and it's f**ked.

So definitely a bug in LW 2018.0.3 while in LW 2018.0.0 it's fine!

XswampyX
04-30-2018, 05:08 PM
https://www.youtube.com/watch?v=AtOvvQYIEvo

Here it is with bullet and morphs. :)

141465

erikals
05-01-2018, 05:17 AM
looks darn nice XswampyX  https://i.imgur.com/tJGL61i.png

MonroePoteet
05-01-2018, 07:34 AM
Really brilliant Bullet setup - this is definitely a "keeper" for my Techniques & Tricks folder!

THANKS for sharing the scene to be dissected!
mTp

P.S. Not to mention the really clever use of Morph targets with the computed morph amount! Wonderful!

XswampyX
05-01-2018, 02:29 PM
looks darn nice XswampyX  https://i.imgur.com/tJGL61i.png


Really brilliant Bullet setup - this is definitely a "keeper" for my Techniques & Tricks folder!

THANKS for sharing the scene to be dissected!
mTp

P.S. Not to mention the really clever use of Morph targets with the computed morph amount! Wonderful!

Cheers guys, glad you liked it! :thumbsup:

I had a great big grin when it all came together and the glass rotated but the "liquid" stayed in the correct position. Just put it into your scene and forget it.

141470

adk
05-01-2018, 04:08 PM
Fab ! Thanks a lot XswampyX ... good to see you back btw :)

XswampyX
05-01-2018, 04:30 PM
Fab ! Thanks a lot XswampyX ... good to see you back btw :)

Awwww! :) Thanks.

adk
05-01-2018, 05:26 PM
I did put a call out for you a while back.
Call it your quiet years, as months doesn't have the same ring to it :D so I'm glad to see you back here mate.
Always enjoyed seeing and learning from your solutions and great nodal setups. This being another case in point.

50one
05-01-2018, 11:44 PM
I did put a call out for you a while back.
Call it your quiet years, as months doesn't have the same ring to it :D so I'm glad to see you back here mate.
Always enjoyed seeing and learning from your solutions and great nodal setups. This being another case in point.

QFA, would like to have Swampy's brain.
In a jar:D

raw-m
09-08-2018, 06:29 AM
Just updated to LW 2018.0.3 and it's f**ked.

So definitely a bug in LW 2018.0.3 while in LW 2018.0.0 it's fine!

I know this is old but thought I'd say just tried this again in 2018.0.6 and got it working by turning on Double Sided for both objects (by total fluke!). More tests to do but much better results now :D
Another classic, thanks again XswampyX!