Articles

Sparkling Water CGI in Houdini: Bubbles, Carbonation & Refraction

ARTILABZ™

ARTILABZ™ gives you unlimited access to all Houdini courses, 3D assets, simulation files, textures and tools. updated every month.

Everything You Need to master Houdini.

01

Premium Houdini Tutorials

Full access to every course — fluid simulation, procedural FX, brand visuals and more.

02

Monthly New Content

Fresh tutorials and assets added every month — your library grows with you.

03

Instant Access to Everything

The moment you join, the full library is yours — no drip-feed, no waiting.

04

Project Files Included

Every tutorial comes with the full Houdini scene file — open every node, learn every detail.

FROM 14.99€/MONTH

Includes one exclusive complete course

The exclusive course — a full production tutorial you won't find anywhere else, never sold alone.

Best Seller
Most Loved
Tutorial Camera Rig

ADVANCED CUSTOM CAMERA RIG

ANIMATION · CONSTRAINTS · CUSTOM UI

BUILD A FULLY CUSTOM CONSTRAINT-BASED CAMERA RIG IN HOUDINI WITH A CUSTOM UI PANEL. DESIGN FLEXIBLE SYSTEMS FOR PRECISE, CINEMATIC CAMERA ANIMATION ON ANY PROJECT.

€29.99

Freebies
Free Studio HDRI Pack box by Artivoxa showing 60 studio lighting setups with softboxes wrapped around the packaging

Studio HDRI Collection

ASSETS · EXR & HDR · 60 HDRIS

DOWNLOAD 60 STUDIO HDRIS CAPTURED IN A REAL PHOTO STUDIO. LIGHT YOUR PRODUCT AND BEAUTY RENDERS LIKE A PHOTOGRAPHER — SOFTBOX, LANTERN, STRIP AND GRID SETUPS, READY FOR ANY RENDERER.

FREE

Sparkling Water CGI in Houdini: Bubbles, Carbonation & Refraction

Believable sparkling water CGI in Houdini depends less on maximum simulation detail than on a coordinated set of cues: correctly scaled bubbles, localized nucleation, coherent upward motion, a readable meniscus, clean dielectric boundaries, and lighting that reveals refraction without making the drink opaque. For most product shots, the strongest solution is a hybrid setup—procedural wall bubbles, particle-driven rising bubbles, and a small art-directed hero layer—rather than a full fluid simulation.

This guide covers how to build the glass and liquid, choose between procedural, particle, and FLIP workflows, design convincing carbonation behavior, shade nested transparent materials, light the product, configure render passes, and diagnose common failures. The emphasis is on controllability, physical plausibility, and production-efficient iteration through the final camera.

What makes sparkling water read as carbonated?

Carbonation is not communicated by bubble count alone. The image needs several mutually reinforcing cues:

  • Small bubbles attached to localized regions of the inner glass wall
  • Free bubbles rising through the liquid at varied speeds
  • A hierarchy of bubble sizes rather than one repeated diameter
  • Occasional clusters and coherent streams around nucleation sites
  • Clean refractive water with a visible fill level and meniscus
  • Highlights that describe the glass, liquid boundary, and bubbles separately
  • Restrained surface activity unless the shot includes pouring or agitation

The glass defines the outer contour, rim, wall thickness, and edge distortion. The liquid establishes the fill level, meniscus, and refractive body. Carbonation is carried primarily by discrete air inclusions, their placement, and their motion. If these responsibilities blur together, the water can resemble empty glass, the bubbles can look like plastic beads, or the whole volume can become foam.

Foam and sparkling water require different visual structures. Foam contains tightly packed bubbles and often presents a scattering layer; settled carbonated water relies on separated bubbles that remain legible through a clear liquid. Surface fizz can be added as a distinct secondary system, but covering the entire volume with dense, uniformly bright spheres usually destroys clarity and depth.

Lock the shot before building the effect

Camera distance and delivery resolution determine which bubble details are worth generating. A macro shot may require explicit geometry, accurate wall attachment, persistent particle motion, shallow depth of field, and carefully resolved refraction. A wider pack shot may read with instanced spheres and a few hero bubbles, provided their projected size survives antialiasing and downsampling.

Lock the vessel, fill level, lens, framing, and intended animation duration early. Bubble radius, wall thickness, meniscus width, depth of field, absorption, and motion blur all depend on a consistent real-world scale. An arbitrarily scaled scene can look proportionally correct while producing implausible particle speeds, collision offsets, focus behavior, or transmission depth.

Lighting and background design also belong in the planning stage. Transparent objects need gradients, cards, or shaped reflections to become visible. A uniformly bright environment can erase the water boundary; a uniformly dark one can turn layered refraction into a heavy, opaque mass. Evaluate the effect through the final camera rather than judging bubble density in the viewport.

Build reliable glass and liquid boundaries

Refraction problems often begin in geometry rather than shading. Overlapping shells, coincident faces, reversed normals, accidental caps, and inconsistent wall thickness can cause black seams, doubled edges, unstable highlights, or unexpectedly opaque regions.

Model the vessel as a real shell

The glass should have a defined outer wall, inner wall, base, rim, and physically meaningful thickness. Remove duplicate primitives, self-intersections, hidden internal faces, and unintended caps. Check winding and normals after importing or transforming the asset, especially around the base and rim where topology often becomes complex.

Inspect the vessel with an opaque diagnostic material before introducing transmission. A temporary section view or exploded display should make the inner wall, outer wall, and base unambiguous. If the geometry is difficult to understand while opaque, it will be considerably harder to debug through several refractive interfaces.

Create the water as a separate closed volume

The liquid needs a deliberate relationship with the inner glass wall and a coherent upper surface. Include a restrained meniscus where the water meets the vessel; in a static product image, that narrow curved boundary often communicates surface tension more effectively than broad displacement across the liquid.

A static or lightly animated surface is sufficient for most settled-drink shots. Use a FLIP liquid simulation when the water itself must evolve through pouring, impact, splashing, or sloshing. If the surface remains essentially still, FLIP adds cache, meshing, and reseeding complexity without necessarily improving the image. For a contrasting example of when fluid behavior is central to the shot, see this Houdini honey-pour workflow.

The exact glass-to-liquid topology should follow the nested-dielectric workflow supported by the renderer. Some pipelines expect carefully overlapping closed volumes with medium priorities; others rely on explicit interfaces. In either case, avoid uncontrolled gaps and coincident surfaces. Test the convention on simple geometry before committing to the hero asset.

Prepare masks and attributes for carbonation

Separate bubble placement into controllable regions rather than scattering uniformly through the water. Useful categories include wall-adhered bubbles, free-rising bubbles, nucleation sites, surface fizz, background bubbles, and art-directed hero bubbles.

These regions can come from painted masks, groups, curves, point clouds, UV textures, or procedural distance fields. A practical attribute scheme might include:

  • s@bubble_zone for categorical placement
  • f@bubble_mask for local density
  • f@adhesion for wall attachment or release probability
  • f@wall_distance for boundary-aware placement
  • f@pscale for instance radius
  • i@id for stable animation and shading variation
  • i@state for attached, rising, merging, or surface behavior

The names are less important than preserving consistent meaning through SOPs, simulation, instancing, shading, and AOV generation. Stable IDs are essential whenever random size, drift, material variation, or lifecycle behavior must remain coherent between frames.

Wall-bubble candidates should be derived from the inner vessel surface and offset into the liquid according to bubble radius and the chosen contact model. A large visible intersection reads as a geometry error, while too much clearance makes the bubble appear detached. Treat contact distance as a controllable property rather than applying the same offset to every instance.

Choose the right bubble workflow

The appropriate Houdini bubble setup depends on four factors: required motion, interaction with the liquid, art-direction demands, and revision cost. A technically sophisticated solver is not automatically the best production choice.

Procedural instancing

Procedural scattering and instancing work well for still images, product turntables, and shots in which placement matters more than dynamic interaction. Generate points inside the liquid or along selected wall regions, assign scale and class attributes, then instance a small family of bubble meshes.

A convincing distribution needs structure. Use sparse hero bubbles, smaller wall populations, localized nucleation bands, and clear negative space. Density can vary with height, distance from the wall, or an authored composition mask. Avoid driving every property from one random value; independent stable channels for scale, spacing, roughness, and placement prevent obvious categories such as every large bubble also being bright and fast.

Procedural bubbles offer predictable revisions and make it easy to protect a logo, label, or clean silhouette. Their weakness is motion: they are less suitable when the camera clearly observes release, acceleration, collisions, or response to changing liquid flow.

Particle-based bubbles

A POP workflow is appropriate when bubbles need persistent identity, time-based emission, buoyant rise, drag, turbulence, collision handling, or release from nucleation sites without materially changing the water volume.

Emit particles from authored source regions and give them an upward tendency rather than a fixed identical velocity. Modulate rise speed with bubble size, age, and any inherited flow field, then add restrained low-frequency drift or curl. Forces should remain coherent over time; changing a noise seed every frame causes popping and destroys particle identity.

Use particle attributes to drive downstream geometry and shading. Age can control initial growth or surface removal, height can shape art-directed emphasis, and stable random values can select geometry variants. Collision volumes should keep bubbles inside the liquid and away from the glass, but collision response alone is rarely enough to create believable adhesion.

FLIP and coupled simulation

Use FLIP when moving water has a visible influence on the shot: pouring, impact, sloshing, splashing, a changing meniscus, or strong bubble–flow interaction. Even then, it is often advantageous to derive bubble motion from the liquid velocity field while retaining a separate particle or procedural system for the gas inclusions. This preserves control over density and hero placement.

Simulating every small bubble as a fully coupled phase is usually unnecessary for a controlled pack shot. It increases computation and cache management while making composition-driven revisions more difficult. A hybrid system normally provides a better balance:

  • Procedural instances for attached wall bubbles
  • Particles for rising background carbonation
  • Manually placed or separately seeded hero bubbles
  • FLIP only for meaningful liquid-surface motion

Design believable carbonation behavior

Bubble behavior should explain where carbonation begins, how it remains attached, why it releases, and what happens at the surface. A uniform volume scatter looks more like suspended beads because it contains no visible cause.

Nucleation and adhesion

Build nucleation from selected regions of the interior wall, base, surface imperfections, or art-directed masks. Keep the pattern localized and irregular. A perfectly continuous ring around the glass is as artificial as an entirely uniform volume distribution.

Wall-adhered bubbles should use an explicit state. Store a surface position and normal, constrain the bubble center to the appropriate offset, and vary growth, lifetime, and release threshold. Some bubbles can remain small, some can grow before detaching, and a limited number can form local clusters.

A release event should preserve continuity. The bubble should inherit a plausible initial velocity and transition from its wall constraint into the rising system rather than teleporting into open water. Persistent IDs allow this state change to drive geometry, motion, and shading without flicker.

Rise, drift, and clustering

Buoyancy provides the dominant upward tendency, but perfectly vertical paths expose the procedural construction. Add restrained lateral drift, differences in rise speed, low-frequency path curvature, and occasional clustering. Variation can correlate loosely with bubble scale, although the exact physical relationship depends on size, shape, and flow regime.

Use separate stable random channels for radius, release time, rise speed, wobble, and path curvature. Flat random ranges often look synthetic; biased distributions usually work better because most bubbles should follow a dominant behavior while a smaller population provides visible exceptions.

Prevent uncontrolled overlaps. Multiple refractive shells occupying nearly the same space can create black patches and overly bright highlight clusters. Apply minimum-distance tests, restrict merge candidates, or reduce density in congested regions. Check separation using the final bubble radius, not just source-point distance.

Surface fizz and removal

Keep rising bubbles, surface fizz, and foam as separate streams. Bubbles approaching the liquid boundary can trigger a short-lived surface population or be removed just beyond the visible interface. A longer animation also needs deliberate lifecycle management so particles do not accumulate indefinitely.

Surface activity should match the story of the shot. A settled drink needs only restrained fizz and minor interface variation. Pouring or agitation can justify more energetic breakup, but that effect should not leak into every frame of an otherwise calm product animation.

Build a readable hierarchy

Use many small bubbles for texture, fewer medium bubbles to establish motion, and a limited number of larger hero bubbles for composition. If every bubble is large and equally bright, depth collapses. If all are below pixel size, antialiasing and downsampling can remove the carbonation cue entirely.

Depth-aware art direction is useful in dense compositions. A camera-space mask can reduce front-layer density where bubbles obscure the label or glass contour. Rear bubbles may need stronger separation from the background, while a clean mid-depth region often provides the most readable carbonation. Adjust population and placement before resorting to global brightness or opacity changes.

Shade glass, water, and bubbles as separate media

Glass, liquid, and bubbles are related but distinct optical problems. Assign them separate closed geometry and physically based dielectric materials so wall thickness, meniscus response, absorption, roughness, and nested-medium behavior remain independently controllable.

Glass and water

Start with transmission rather than opacity. Water commonly uses an index of refraction near 1.333, while many clear glasses are around 1.5, although the appropriate value depends on the material and renderer. Consistency between geometry, scale, and medium configuration matters more than tuning an isolated number.

Keep glass roughness low enough to preserve manufactured edge highlights, but not automatically at absolute zero. Small roughness can prevent a sterile result, while excessive roughness makes the vessel look frosted or plastic. Water should remain clear; use subtle distance-dependent absorption only when the shot, product tint, and path length justify it.

Transparent-liquid product work benefits from validating the setup on a simple slab or tumbler before moving to the hero scene. Confirm that the renderer can trace the outer glass, liquid interface, bubbles, and exit surfaces with the available ray depth. A related challenge—balancing several transparent and reflective components—is discussed in this guide to cocktail CGI with layered liquids.

Bubble shading

A bubble is an air inclusion inside water, not an opaque white sphere or a miniature glass bead. Its visibility comes from the water–air boundary, reflected highlights, and distortion of the background. Use closed geometry with coherent normals and a dielectric treatment compatible with the renderer’s nested-medium system.

A gas cavity may require different normal or medium-priority handling from a glass object placed in water. Do not assume that assigning an IOR of 1.0 to an arbitrary sphere will produce the correct result in every Karma or MaterialX configuration. Validate one bubble in a simple water volume, then confirm that the chosen convention remains stable when hundreds of instances overlap in the camera view.

Keep material variation restrained. Small changes in roughness or surface shape can break repetition, but diffuse white color, strong emission, or broad opacity makes bubbles look solid. Reserve higher-resolution or subtly deformed geometry for hero bubbles; most background instances can remain simple and smooth.

Light transparent detail without losing clarity

Transparent materials need meaningful visual information to reflect and refract. A uniform background often makes physically correct glass and bubbles disappear, so build the environment around controlled tonal transitions.

A broad area light or luminous card can create long reflections that describe the glass silhouette and bubble curvature. Add a strip, rim source, or reflected card only where the primary shape does not define an edge. Many small lights tend to fill the drink with competing highlights and can make every bubble a distracting point.

A graduated background is especially effective. A darker region behind part of the liquid creates refractive contrast, while a lighter region can define the outer vessel. An HDRI may provide useful base reflections, but uncontrolled high-frequency highlights can obscure the bubbles. Shape the response with cards, blockers, light linking where available, or a purpose-built studio environment.

Judge the lighting in grayscale as well as color. The outer glass edge, water boundary, and internal bubble population should remain distinguishable through value structure. If readability depends entirely on a subtle tint, it may not survive alternate backgrounds, color grading, or smaller output sizes.

Configure Karma and render passes for nested refraction

Before increasing samples, verify renderer controls that govern transmission and nested transparent geometry. In Karma, the relevant settings depend on the render mode and material network, but the diagnostic priorities remain consistent:

  • Ensure transmission and refraction ray depth can traverse the required interfaces.
  • Confirm transparent-shadow behavior and any nested-medium or volume-priority settings.
  • Separate transmission noise from glossy, shadow, and caustic noise.
  • Test whether motion blur erases small bubbles or introduces strobing.
  • Remove subpixel and off-camera bubbles before raising global quality.

More ray depth is not always better. It can increase cost and noise without solving incorrect normals, intersections, or ambiguous geometry. Use a simplified test containing one glass shell, one water volume, and a few bubbles to determine whether the failure comes from materials, lighting, geometry, or the ray budget.

Render enough AOVs to distinguish generation problems from shading and compositing problems. Useful outputs include beauty, reflection or specular, transmission or refraction, depth, glass and liquid mattes, bubble IDs, and hero-bubble masks. Cryptomatte or object and material identifiers allow selective grading without rebuilding the simulation.

AOVs should refine a plausible result, not rescue a broken one. Subtle local contrast can help carbonation survive the final grade, but aggressive glow, opacity, or edge enhancement will not hide incorrect scale or intersections—especially in animation and reflections.

Common failures and how to diagnose them

Bubbles disappear

Do not begin by increasing opacity. Check projected size, background contrast, light angle, and front-to-back density. A few larger bubbles can establish the pattern while smaller ones provide texture. If the bubbles are physically present but produce no readable edge, alter the environment they reflect and refract.

Bubbles look like beads or foam pellets

The material is probably too diffuse, opaque, rough, or uniform. Confirm that the geometry represents a gas boundary and that the renderer understands the surrounding medium. Also inspect intersections: bubbles crossing the glass or liquid surface produce flattened silhouettes and dark bands that resemble solid particles.

The water looks like empty glass

Check the fill boundary, meniscus, and absorption scale. A zero-thickness surface or a liquid mesh that merely overlays the vessel will not establish a convincing volume. The background must also provide enough variation for the liquid to distort; refraction cannot reveal a featureless environment.

The glass looks plastic or opaque

Inspect wall thickness, normals, roughness, and transmission depth. A thin shell with inconsistent orientation can produce a uniform or broken response. If raising samples only reveals more noise, return to geometry and lighting rather than making the material artificially brighter.

Streams are mechanically vertical

Introduce nucleation structure, attachment time, staggered release, size-dependent speed variation, and coherent lateral drift. Avoid unrestricted turbulence, which replaces one artificial pattern with another and can make settled water appear violently agitated.

Black patches or dark seams appear

Look first for duplicated shells, coincident faces, flipped normals, overlapping liquid surfaces, and dense bubble intersections. Then test ray depth and nested-medium settings one layer at a time. Isolate the glass, water, and bubbles in separate renders before changing all three materials simultaneously.

Animation flickers or pops

Stabilize random seeds, point ordering, particle IDs, and topology. Procedural regeneration must preserve bubble identity between frames. Check whether motion blur is appropriate for the projected bubble size; excessive blur removes small bubbles, while inconsistent velocity data makes them strobe.

Transparent regions remain noisy

Use AOVs to identify whether the noise comes from transmission, glossy reflection, shadows, or caustic paths. Raise the relevant sampling control rather than all samples globally. Simplifying hidden geometry and removing subpixel bubbles can be more effective than brute-force rendering.

Render time grows disproportionately

Cull bubbles behind opaque labels, outside the camera frustum, or below the final pixel threshold. Use instancing and level-of-detail rules, retain detailed geometry only for hero bubbles, and cache points before geometry generation. Expensive refraction should be concentrated where it changes the final image.

Make the setup production-ready

A robust asset exposes artistic decisions without forcing the user to edit the underlying network. At the HDA or shot-control level, provide controls for:

  • Fill height, meniscus scale, and surface variation
  • Total density and separate minimum and maximum bubble radius
  • Nucleation masks and regional density multipliers
  • Wall adhesion, growth, lifetime, and release threshold
  • Rise speed, drift, turbulence, and vertical variation
  • Hero-bubble placement and seed control
  • Surface fizz density and lifecycle
  • Viewport, camera, reflection, refraction, and shadow visibility where supported

Keep source generation, simulation, instancing, shading, lighting, and rendering as separate stages. Cache source points or particles before generating render geometry so scale, material, and visibility changes do not require a new simulation. Version the source vessel, collision geometry, masks, random seeds, camera, caches, and render settings explicitly.

Validate the result at delivery resolution with the intended depth of field, motion blur, color management, and background. Review silhouette and scale, glass and water refraction, bubble distribution, surface behavior, highlight structure, alpha edges, and temporal continuity independently. If a shot fails, change one category at a time: solve geometry before shading, shading before sampling, and sampling before compositing.

For most product visualization, the most reliable result is a simple physically credible base with a controlled hero layer. Procedural wall bubbles, particle-driven ascent, selective FLIP motion, clean nested dielectrics, and well-planned AOVs provide enough realism while preserving the revision speed that commercial sparkling-water imagery requires.

— FOREVER FREE —

Free Studio HDRI Pack box by Artivoxa showing 60 studio lighting setups with softboxes wrapped around the packaging
  • Blender
  • Cinema 4D
  • Houdini
  • Maya
  • 3ds Max
  • Unreal
  • Redshift
  • Octane
  • Karma
  • Cycles
  • Arnold
  • V-Ray
  • Corona

60 studio lighting HDRIs in one free pack — softboxes, lanterns, strip boxes, grids, top-light and three-point setups, all shot in a real photo studio.