bubbles blowing off surface
#1
Hi! 

I'm new to Tyflow and I think what I need is very simple, I just need a place to start. I want to create an effect where bubbles are on a waterbottle and blow off it in 0.3 seconds about 5 cm from the surface and then start moving upwards slowly like the bubbles that er in a fizzy drink. I have seen a tutorial covering the bubbles in liquid but the first effect of blowing off the surface I don't know how to do. Can somebody give me a quick start on which controllers I should use? 

Thanks so much!

-Joep
  Reply
#2
I tried asking chatGPT and I got a very good answer:

1. Prepare Your Scene
Bottle Model: Ensure your bottle model is properly scaled and positioned in your scene.
Scene Scale: tyFlow simulations are sensitive to scene scale. Make sure your units are set correctly (e.g., centimeters).
2. Create a tyFlow Particle System
Add tyFlow to Your Scene:

Go to Create Panel > Geometry > tyFlow.
Click and drag in the viewport to create a tyFlow icon (the icon's size doesn't affect the simulation).
Open the tyFlow Editor:

Select the tyFlow object.
Click on "Open Editor..." in the Modify panel to access the tyFlow editor.
3. Set Up Particle Emission on the Bottle Surface
Birth Operator:

Add a "Birth" operator to define when particles are born.
Set the Emit Start and Emit Stop times to 0 (or your desired start time).
Define the Total number of particles to distribute over the bottle surface.
Position Object Operator:

Add a "Position Object" operator to position particles on the bottle's surface.
In the operator's settings:
Click "Add" and select your bottle object.
Choose "Vertices", "Edges", or "Surface" based on how you want the bubbles distributed.
Enable "Lock On Emitter" if you want particles to stick to the surface initially.
Shape Operator:

Add a "Shape" operator to define the bubble appearance.
Choose a sphere shape and adjust the size to match your bubble scale.
4. Create the Initial Bubble Expansion
Time Test Operator:

Add a "Time Test" operator to trigger the expansion at a specific frame.
Set the Test Value to the frame when you want the bubbles to expand (e.g., frame 30).
Split Particles into a New Event:

Connect the Time Test output to a new event by dragging from the output arrow.
This new event will handle the rapid expansion.
Add Forces for Expansion:

Add a "Force" operator in the new event.
Create a Wind space warp pointing outward from the bottle or use a tyWind operator.
Set the wind strength to push particles outward quickly.
Add a "Speed" operator if needed to give an initial burst outward.
Set the speed direction to "Outwards from Icon" or use a vector that points away from the bottle surface.
Adjust the speed magnitude to achieve the 5cm displacement in 0.3 seconds.
Limit the Expansion Distance:

Add a "Drag" operator to slow down particles after they've moved 5cm.
Alternatively, use a "Speed Limit" operator to cap their speed.
5. Simulate the Upward Movement
Add Gravity or Buoyancy:

Add a "Force" operator with a negative gravity value to simulate buoyancy.
Alternatively, create a Gravity space warp pointing upwards and add it to the Force operator.
Adjust Particle Motion:

Add a "Slow" operator to gradually reduce the particles' speed, making the upward movement gentle.
Add a "Drag" operator if you need more control over particle deceleration.
6. Add Variation and Realism
Randomize Bubble Sizes:

In the Shape operator, enable "Scale Variance" to give bubbles different sizes.
Introduce Turbulence:

Add a "Force" operator with a Noise space warp or use tyFlow's built-in turbulence to simulate fluid movement.
Adjust the Frequency and Strength to create subtle bubble path variations.
Collision with Bottle:

Add a "Collision" operator if bubbles should interact with the bottle or liquid surface.
Add the bottle (and liquid surface if applicable) as collision objects.
7. Timing and Animation
Keyframe Adjustments:
Adjust the Timing in the Time Test operator to sync the bubble expansion with the bottle opening.
You can animate parameters like wind strength or gravity to fine-tune the effect.
8. Material and Rendering
Apply Materials:

Create a bubble material (e.g., a glass or water shader).
Assign it to the tyFlow particles using a Material ID operator if necessary.
Rendering Settings:

Ensure your renderer (V-Ray, Arnold, etc.) is set up to render particles correctly.
Adjust transparency, refraction, and reflection settings to make the bubbles look realistic.
9. Test and Refine
Play the Simulation:

Scrub through the timeline to see how the particles behave.
Make adjustments to operators as needed to get the desired effect.
Cache the Simulation:

Once satisfied, use a tyCache operator to bake the simulation for faster playback and rendering.
  Reply


Forum Jump: