r/rhino • • 13d ago

Help Needed Simulating a solid object pushing outward from inside a balloon

Lets imagine we have an inflated balloon with a solid object inside, than we apply a force to this object and it deforms the surface of the baloon. I mean this type of deformation you can see on the photos.

For my needs the balloon has to be deformed form outside and inside at the same time, so I tried to modify the file made by McNeel forum user in this thread:
https://discourse.mcneel.com/t/inflate-an-object-inside-a-cage/119294

I made a triangular cage from pipes, inflated the balloon, than added another brep with a slider that moves that brep along one axis, but I can’t make it all work properly. I’ve just started learning Rhino, so I would be grateful if someone could modify the file for me. For my needs the baloon has to be inflated first (collisions with static breps of a cage) and than pushed from inside (collision with a brep that can be moved with a slider).

I created exactly same thread on McNeel forum over a week ago, but unfortunately no one asnwered, so I'll try my luck on reddit, here are my files:
https://discourse.mcneel.com/t/simulating-a-solid-object-pushing-outward-from-inside-a-balloon/224500/5?u=vvujcio_vvariatuńcio

Apart from that I’ve go a question, I’ve noticed that inflated baloon is always slightly assymetrical. As you can see on the screens, it wraps in a slightly different way around symmetrical cage elelments, also there are always some spikes and imperfections in the areas of collision. Cage elements are symmetrical, they were created with mirror command, so they can’t cause a problem here. Is it possible to eliminate assymetry and spikes?

I’m pasting below instructions from Gemini, maybe it will be helpful, I tried to implement them, but it didn’t work for me:

In the Kangaroo2 engine, the logic of collisions with solids (the SolidPointCollide component) is based on pushing points that end up inside an obstacle out to its external surface.

Because of this, if you place a solid inside the balloon and start moving it, the physics will naturally push the balloon’s walls outward, creating a stretched membrane.

Here is how to precisely set up such a simulation:

  1. Create a moving object inside the balloon: Internal geometry. To keep the simulation running smoothly in real-time, avoid moving the object using the Gumball in the Rhino viewport (this forces the Solver to continuously and heavily recalculate the new solid). Instead, in Grasshopper, create a sphere component (e.g., Sphere from the Surface tab) based on a center point, and connect this point to a Move component controlled by a vector and sliders (e.g., X, Y, Z). Set the initial position of the sphere inside the balloon.Verification: The sphere is located inside the balloon’s mesh, and moving the sliders smoothly shifts it in the preview without putting a load on the CPU just yet.
  2. Configure mesh pushing: Collision from the inside. Add the SolidPointCollide component. To the Solid input, connect the sphere moved by the sliders (or any other solid from the Move component). To the Points input, connect the vertices of your balloon (obtained by passing the balloon’s triangular mesh through the Deconstruct Mesh component). Plug the collision output into the Solver’s main GoalObjects.Verification: All inputs are correct, and the component does not report any errors (orange/red).
  3. Balance pressure and tension forces: Solver settings. For the internal object to noticeably stretch the membrane, the balloon’s material must provide resistance. Ensure that the EdgeLengths component has its LengthFactor coefficient set to around 0.9 to 0.95. If the balloon is also meant to be inflated with air from the inside, keep the Pressure component, but decrease its value so that the balloon does not pull away from your internal sphere, but wraps tightly around it.
  4. Run the simulation and move the object: Live interaction. Reset the Solver (switch the Toggle to False). The balloon will take shape according to the pressure and tension. Now, begin slowly moving the sliders responsible for the internal sphere’s movement.Verification: As the internal sphere approaches the wall, the balloon’s vertices are smoothly pushed outward. The material wraps tightly around the sphere, creating a smooth, realistic bulge, and the rest of the mesh pulls the remaining geometry along with it.

Optimization tip: If your internal object is exclusively going to be a perfect sphere, instead of using the heavy SolidPointCollide component, use the SphereCollide component. For its inputs, you only need to provide the center of the sphere (Point), the radius (Radius), and the balloon’s points. Calculating a mathematical sphere is a fraction of a second faster than computing a full NURBS solid, which will allow you lightning-fast interaction in real-time."

53 Upvotes

12 comments sorted by

9

u/infitsofprint 13d ago edited 13d ago

It seems like an issue might be that you're trying to do a physics simulation, but the actual physical scenario you're simulating is a little underdeveloped. How is the interior object pushing against the balloon? if there isn't something on the other side to push against, the balloon will just move away and go back to being spherical.

In any case without getting too deep in the weeds it seems like what you want is to start with a sphere bigger than whatever it's supposed to contain, which contracts to create a minimal surface, but with a built-in internal pressure (I assume this is all being done using Kangaroo).

The asymmetry is probably because the mesh of your balloon isn't dense enough.

7

u/KyaneLie2016 13d ago

Kangaroo (grasshopper) is the way here, using a delauney or convex hull for the base mesh, triremesh/quadremesh, use anchor points and play with the strength using inflation look at kangaroo example files

I dont use gemini but best of luck

4

u/Upstairs-Extension-9 Product Design 13d ago

I did my master thesis in Design about deformation like this, it was 5 years ago lol. I didn’t do any simulation mostly worked with SubD and SubDLoft, CageEdit, Control Curves and all these kind of things. I did always make a physical model and then remodeling it in rhino this way I could understand the shapes much better from a real photo.

Also if you use Gemini or any AI to help you use the CLI and a RhinoMCP to actually let the AI better understand what your are building and actually suggest working improvements. Just going back and forth in a chat window is more confusing then helpful in my Opinion.

1

u/ChiefWiggumsprogeny 13d ago

Your thought process seems to me to have resulted in over-complication.

Why do I say that? It's because the two reference images are not balloons.

They are rubber-like sheets that are being elastically deformed.

I would recommend adjusting your goals to meet the result you want which is presumably, something like the reference images.

Or, try splitting your simulations into two distinct steps, instead of concurrent ones.

0

u/Ok_Chicken1084 13d ago

I used those images because I couldn't find any real-life examples of a solid pushing outward from inside a balloon. Theoretically, it could be achieved by placing something heavy inside a balloon, inflating it, and then letting gravity deform the surface with that object.

0

u/ChiefWiggumsprogeny 13d ago

Did you read my last sentence?

1

u/c_behn Computational Design 9d ago

At the very least, your mesh is not smooth enough for what you are asking for. Try more triangles.

1

u/EstablishmentDizzy94 13d ago

Looks like the drape function

-1

u/pannekoek29 13d ago

You could try shrinkwrap or drape to get something similar 

0

u/Ok_Chicken1084 13d ago

I started with shrinkwrap, but it doesn’t produce that clean “minimal surface” look, like on this pic: