PDA

View Full Version : Squeeze a ball through a hole.



Wayne Heim
10-10-2018, 04:11 PM
I'm looking for a little help on how to set up squeezing a sphere through a hole in another object. I know I've seen demos of things squeezing/being deformed as they pass through another object but I can't remember how it is done. Looking for advise on what the easiest way is to set something up like this in 2018.

Thanks in advance.

Wayne

mummyman
10-10-2018, 06:13 PM
I guess it depends on how much time you need to spend on it. I've used cloth FX, bullet, and deformations in 2015. I haven't had to use 2018, but I'm assuming all the methods still apply. Deforming using a null and effector for making a sphere move through a cylinder shape to swell it.

MonroePoteet
10-10-2018, 06:30 PM
It might not meet your needs, but you might be able to use the Deformation modifier Taper. LW2018 sample scene attached.

143065 143066 143067

143068 143069 143070

143071

The setup is to create two Nulls called TaperBase and TaperHandle. You then use the Ball's Object Properties=>Add Modifier to add the Deform:Taper deformation handler. Double-click on it to get the options panel, specify the TaperBase and TaperHandle nulls, and in this case I chose the Ease Out preset curve shape and the Z axis:

143072

The Taper deformer is controlled with the Scale of the control nulls. TaperBase null is placed down the -Z axis and remains scaled to (1,1,1) throughout the animation. The TaperHandle null is scaled down to squeeze the Ball through the hole in the plate. Both TaperBase and TaperHandle are moved up and down the Z axis to control the animation as the Ball moves down the Z axis.

Here's a Top view Preview showing the movement of the TaperBase (green) null and the TaperHandle (yellow) nulls:

143073

The scale "wobble" after the Ball comes through the hole was keyframed on the Ball's scale channels.

Although it's fairly quick to setup and control, the Deform:Taper modifier may not give you as much control as you need, but may be worty a try.

mTp

lertola2
10-10-2018, 06:53 PM
3rd Powers Lattice Deformer can work for this: http://www.3rdpowers.com/index_store.html

https://forums.newtek.com/attachment.php?attachmentid=143075&d=1539219093

raymondtrace
10-10-2018, 09:08 PM
Effectors...
https://www.youtube.com/watch?v=zeceDLxUEyI
https://www.youtube.com/watch?v=y4_6hX6fDWk

ianr
10-11-2018, 05:08 AM
3rd Powers Lattice Deformer can work for this: http://www.3rdpowers.com/index_store.html

https://forums.newtek.com/attachment.php?attachmentid=143075&d=1539219093

Ain't that soo smooth, a lovely example.

I hope he got some more plugs up his sleeve?

50one
10-11-2018, 08:33 AM
I can do this in Cinema, Max, Modo, Blender and possibly export .mdd too. Shame for such a simple thing you either have to wrestle displacement nodes or buy a separate plugin.

raymondtrace
10-11-2018, 10:31 AM
I can do this in Cinema, Max, Modo, Blender and possibly export .mdd too. Shame for such a simple thing you either have to wrestle displacement nodes or buy a separate plugin.

I cannot recall the method but I vaguely recall this was one of the exercises taught when I was learning LW on Amiga, without any third party add-ons.

prometheus
10-11-2018, 12:14 PM
I can do this in Cinema, Max, Modo, Blender and possibly export .mdd too. Shame for such a simple thing you either have to wrestle displacement nodes or buy a separate plugin.

You donīt
You can do it with Lightwave bullet deforming body. for initial test I did within some minutes, you should use shape lock and a shape retention value, turn off gravity if you want to manually just move the ball through the hole., (unless using a kinematic item to hold it during gravity and then push it.
Use a lower frame rate initially to get decent realtime respons, and raise it later when playing the sim for more accurate behavior, set a high linear stiffness..if not 100%, volume scaling and conservation maybe 100%

raymondtrace
10-11-2018, 01:16 PM
https://forums.newtek.com/showthread.php?111371-Blob-squeezing-through-a-hole

Hulk
01-29-2019, 03:16 AM
143987

Here's a nodal Version

Wayne Heim
01-31-2019, 10:57 AM
Thanks everyone for the suggestions. I'll give it a go.

W.

MonroePoteet
02-01-2019, 08:38 AM
I'm not sure of the visualization you're trying to accomplish, but as I mentioned in your original thread, researching arterial catheters for repairing plaqued areas in an artery, it looks like the balloon to expand the artery isn't inflated until the balloon portion of the catheter is in the plaqued area. A couple of existing animations:

https://www.youtube.com/watch?v=20KcFgoPX7Y

https://qtvascular.com/us/products/chocolate


mTp

Wayne Heim
02-01-2019, 08:54 AM
I'm not sure of the visualization you're trying to accomplish, but as I mentioned in your original thread, researching arterial catheters for repairing plaqued areas in an artery, it looks like the balloon to expand the artery isn't inflated until the balloon portion of the catheter is in the plaqued area. A couple of existing animations:

https://www.youtube.com/watch?v=20KcFgoPX7Y

https://qtvascular.com/us/products/chocolate


mTp

I'm familiar with how they work. I'm working on an aorta that has a congenital pinch in it. Coarctation. I have modeled the pinch in the aorta and wanted to slide the balloon into the area so that it takes the negative shape of the pinch to show the balloon of the catheter starting to inflate.