Love this concept. Here’s a clean, production-minded roadmap for building it in Houdini, with enough detail to wire it up fast and still leave you room to art-direct the chaos.
Overview
You’ll build five systems and have them talk to each other:
- Glass bulb asset with correct nested dielectrics and a collision proxy.
- Mini ocean (FLIP) with whitewater and mist, responsive to lightning impulses.
- Storm cloud volume for mood and light play, optionally driving rain.
- Lightning system: volumetric leader growth + surface creepers on glass.
- Rendering/comp that leans on emissive lighting, nested dielectrics, and caustics cheats.
1) Scale, units, and shot scaffolding
- Work in real-world scale. A classic A19 bulb is ~60 mm diameter, ~110 mm tall. Set scene in meters; bulb radius ~0.03 m.
- Decide water fill height early (~30–40% of bulb volume). This determines FLIP domain and whitewater thresholds.
- Pick the lens and framing so you know what needs fidelity. Macro-ish lens (70–100 mm), modest DOF to sell mini scale.
- Build a shot controller node (Null with promoted parms): seed, lightning rate, wind, sim scale, cache toggles. Wire everything to it.
2) Bulb model, collisions, and UVs
- Model high-res bulb with correct thickness (1–2 mm). You want separate inner and outer glass surfaces. Keep base/filament as separate geo for shading and occlusion control.
- Create a low-res collision proxy for DOPs:
- VDB From Polygons of the inner glass only (this is your container). Voxel size ~2–3× FLIP particle separation for stable collisions.
- Ensure closed, watertight inner surface. Outward-facing normals on fluid side.
- UV the inner glass for surface creeper lightning. You can also store geodesic distance and principal curvature attributes for later surface growth bias.
- For shading: plan nested dielectrics. Assign dielectric priority: air outside (lowest), glass, air pocket (if any), then water (highest). In Karma, use MaterialX Standard Surface with nested priority or volume “priority” attributes.
3) Water: FLIP tank inside the bulb
Core setup
- Create a bulb-shaped FLIP domain by using the inner-glass VDB SDF as a collision and container (Static Object, “Invert Sign” set appropriately if needed).
- Fill region: initial particle fill up to your desired height using the SDF; narrowband enabled.
- Particle separation: 0.001–0.003 m depending on shot scale and budget. Narrowband width ~3–5 voxels; particle radius scale ~1.3–1.5.
Behavior and realism cues for “mini ocean”
- Surface tension matters at this tiny scale. Add Gas Surface Tension micro-solver tuned low but present. Start around 0.1–0.5 (unitless Houdini parm) and wedge. It helps produce cohesive wavelets and cleaner sheets.
- Slight viscosity (0.001–0.01 Pa·s) stabilizes the surface and reads “miniature.”
- Slip on collisions: use a high tangential drag ratio or enable slip on the glass to avoid sticky walls.
- Seed initial velocity with a low-amplitude swirling field or with Ocean Spectrum displacement baked into a velocity field (Volume Rasterize Attributes → Source Volume into “v” on the FLIP solver). This prevents totally static water before the first lightning hit.
Mesh + detail
- Surface with Particle Fluid Surface (SDF adaptivity on); remesh after to keep even quads on visible regions.
- Add high-frequency detail in shading or via Ocean Evaluate displacement blended by a foam mask. Since it’s confined, keep displacements subtle and camera-facing.
Whitewater and mist
- Whitewater Source from the meshed surface, thresholding by curvature and vorticity. Lower scales need higher curvature sensitivity; reduce min speed threshold.
- Use the Whitewater Solver, but clamp lifetimes; density low so the bulb doesn’t look like a snow globe.
- Mist pass: either enable in whitewater or run a tiny sparse pyro mist that sources from whitewater spray. Keep dissipation high.
Lightning-driven impulses into FLIP
- You want the water to react to strikes. Easiest approach:
- Cache lightning strikes as points with attributes: p, t_hit, dir, strength, radius.
- In DOPs, add a Volume Source into the FLIP solver on frames around t_hit to inject velocity:
- Build a radial velocity field v = dir * falloff + outward_splash, where outward_splash = normalize(P - p) * splash_scale * falloff.
- falloff = smoothstep(radius, 0, distance(P, p)).
- Alternatively, add a pressure burst via Gas Field VOP and a short-lived divergence spike for a cleaner ring wave.
- Spawn extra spray on impact: create a localized whitewater emission boost at the strike location for 2–4 frames.
4) Storm cloud volume inside the bulb
- Block a low-density cumulus with VDB noise, or run a tiny Sparse Pyro sim so it breathes. Contain it in a bounding shape above the water line. Don’t overfill the bulb or you’ll lose silhouettes.
- Drive subtle advection with a looped curl-noise velocity field; very low buoyancy so it sits heavy.
- Lightning will momentarily overexpose this volume; set shader to be primarily scattering (low absorption), single scattering depth ~1–2 cm at this scale.
Optional rain
- POP rain emitted from the cloud volume, advected by the wind field. Use a Line with motion blur as a per-particle instancer for cheap streaks.
- Use POP Collision Detect with the inner glass and water. On glass hits, spawn surface ripples (shader-only normals), on water hits emit a couple splash particles. Keep it sparse.
5) Lightning: volume leader growth (in-air)
Two parts: a “leader” that grows through the volume and a “return stroke” that brightens the final path.
Potential field
- Build a scalar “attractor” VDB, potential(x), that biases leaders toward the water and secondary targets:
- potential = w_water * (-SDF_water_surface) + w_glass * (-SDF_glass_inner) + noise_bias + wind_bias.
- Normalize ranges and clamp to a working band. The sign/weighting is your creative control: more weight to water to prefer water strikes.
- Optionally, create an “avoid” field near the bulb wall to keep volume arcs off the glass unless intended.
Leader growth in a SOP Solver
- Seed points near the cloud base (or from a charged region). On each substep:
- Sample dir = normalize(-∇potential(P)) + jitter.
- Step by step_len (0.5–2 cm), create a new point and connect a segment.
- With a low probability, branch: duplicate current point, rotate dir by small random angles, keep both branches going.
- Stop growth upon hitting a target or leaving the domain (potential below threshold).
- Store per-point time of birth tb and a path ID. Cache to disk. This is lightweight.
Example VEX sketch (runs on a solver’s “frontier” points, second input = VDBs):
// parms: step, jitter, branchprob
vector g = -volumegradient(1, "potential", @P);
vector dir = normalize(g + sample_direction_cone(rand(@ptnum+@Frame), {0,0,1}, chf("jitter")));
vector np = @P + dir * chf("step");
if (volume(1, "domain_mask", np) < 0) { removepoint(0, @ptnum); return; }
int newpt = addpoint(0, np);
int prim = addprim(0, "polyline", @ptnum, newpt);
setpointattrib(0, "tb", newpt, @Time, "set");
if (rand(@ptnum*13.37+@Frame) < chf("branchprob")) {
// add a branch by duplicating frontier state (implementation detail)
}
Return stroke animation
- Once a leader hits water or glass, promote that path ID to “complete.” Create an attribute t_hit and animate an emissive multiplier along the spline: a very fast brightening (2–3 frames), a short decay, and a faint afterglow.
- Add micro-jitter to the curve points during the bright phase (sub-mm) to get that sizzling motion.
Width and meshing
- Use a width attribute over curve length: thicker near trunk, taper to tips. Polywire or Sweep with round caps. Keep geo light; most of the look comes from emissive bloom, not geometry thickness.
6) Lightning: surface creepers on inner glass
These are crawling discharges that skate along the inside surface.
Approach
- Use the inner-glass mesh as a graph. Precompute:
- UVs or a quad remesh for uniform density.
- Per-vertex curvature and a “creep_mask” (avoid high-convex regions if you want arcs to favor flatter areas).
- SOP Solver growth:
- Seed a point where the volume leader touches glass. At each step, move tangentially along the surface:
- Get tangent frame (Polyframe or dihedral basis from the normal).
- Choose a direction using a curvature-biased random walk + attractor toward nearest “ground” (e.g., the water SDF projected to the surface).
- Add occasional branch nodes.
- Project positions back to the surface each step (xyzdist/primuv).
- Build thin polylines; animate emissive as above, but keep them dimmer than the main air-water strike.
Shading note
- Make a separate material for surface creepers: bright blue-white emission with slight Fresnel-linked intensity so they read differently against glancing reflections.
7) Strike interactions and secondary effects
- Water impulse: as above, inject velocity/pressure. Add a localized bubble/sizzle:
- Emit a short-lived POP of micro-bubbles at the strike point, constrained to just below the surface (use signed distance to the mesh for birth culling).
- Optionally spawn a tiny steam puff with sparse pyro (very small radius, fast dissipate) to catch lightning light.
- Glass hit: create a transient hot-spot and faint scorch.
- Bake a very subtle decal or vertex color in a tiny area. You can drive this by stamping a 3D noise in UV space at the contact point and fading it over ~20–30 frames.
- For extra punch: micro-chroma dispersion in that zone via a thin-film lobe or slight roughness modulation.
8) Lighting, shading, and rendering (Karma recommended)
Glass and water
- Glass: physically plausible IOR ~1.5–1.52. Enable nested dielectrics. Add tiny normal micro-roughness to sell scale. Keep actual thickness real to avoid refraction artifacts.
- Water: IOR 1.333, slight absorption (bluish/greenish) with a very small distance at this miniature scale (e.g., 0.02–0.05 m).
- Manage priorities so water wins over glass inside; set shading groups accordingly.
Lightning as light
- Let the bolt geo be emissive. Also enable contribution to lighting (Geometry Light in Karma, or just emissive with enough max bounces and clamping).
- Expect to raise exposure significantly for the return stroke (e.g., +8 to +12 EV) and clamp fireflies. Render with higher specular samples for frames with strikes (or split them into a separate render range).
Caustics options
- If you need caustic sparkle on the bulb or base: in Karma, enable path guiding or caustics filter if available. If too slow, fake with a subtle gobo/texture projected light synchronized to lightning frames and a very soft caustics AOV cheat.
- Water-on-glass internal caustics are expensive; be strategic with ROI renders for those frames.
Cloud volume shading
- Use an isotropic/forward-scattering volume shader; keep density low. The lightning’s emission should visibly bloom in the cloud.
- Add a light-link to let lightning over-illuminate the cloud without blasting the whole scene.
AOVs
- Emit separate AOVs: lightning emission, beauty, specular, transmission, volume emission/scatter, whitewater, mist. Add a “strike matte” from the strike point cache to time comps.
9) Compositing
- Bloom/glare on lightning (streaked, high-threshold). Animate exposure/contrast punches on strike frames.
- Subtle chromatic aberration helps the glass read real, but keep it tiny.
- Grade: crush blacks carefully; preserve midtone detail in the cloud and the water meniscus against the glass.
- If DOF was too heavy in-render, consider doing it in comp with deep or Z, but in-camera DOF usually sells the miniature better.
10) Caching, performance, and control
- Cache each domain separately:
- Bulb SDFs (static).
- FLIP particles and surface SDF (per wedge).
- Whitewater.
- Cloud VDB (can be static with animated shader).
- Lightning curves (leader and creepers) as lightweight geometry with per-point tb.
- Wedge seeds for lightning and whitewater; lock layout once you like the rhythm, then run high-res sims.
- For strike-driven interactions, drive everything from a single “strikes.usd/bgeo” sparse point cache so DOP and SOP solvers agree on timing and positions.
- Use a low/hi switch on particle separation and VDB voxel size driven by a global “res” toggle.
11) Optional HDAs you’ll likely want
Lightning Leader HDA (volume)
- Inputs: domain SDF, potential VDB, start seed points.
- Params: step, jitter, branch prob, max length, target bias weights, seed, return stroke timing curve.
- Output: curve prims with width, tb, strike_id, type (leader/branch/final).
Glass Creeper HDA (surface)
- Inputs: inner-glass mesh (with UVs), strike seed point(s), water SDF as attractor.
- Params: tangential step, branch rate, curvature bias, max span, emissive profile.
- Output: surface-following polylines with width and emission attrs.
Strike Impulse HDA (FLIP)
- Inputs: strike point cache.
- Params: impulse radius, normal vs radial split, pressure vs velocity mix, whitewater boost, mist spawn.
- Output: velocity/pressure fields for Volume Source + event points for secondary FX.
Starting values to get you moving
- FLIP separation: 0.002 m; narrowband on; surface tension 0.3; viscosity 0.005; timescale 1.0–0.7 when lightning hits.
- Whitewater: foam rate 0.3–0.5 of default; bubble lifetime short; mist on with high dissipation.
- Lightning: step 0.01 m; jitter 0.2–0.35; branch prob 0.05–0.12; return stroke 2–3 frames to peak, 8–12 frame decay; core width 0.001–0.002 m.
- Cloud: density 0.2–0.5 (depending on shader), anisotropy 0.0–0.2, fast dissipation if simmed.
- Rendering: 2–4 diffuse bounces, 6–8 spec/transmission on lightning frames, emissive clamp, spectral render if available, pixel samples 8–12 baseline; go higher for strike frames only.
Pitfalls to avoid
- Double refraction: get nested dielectrics and object priorities right or the water/glass interface will look wrong.
- Overbusy storm: too many droplets/foam will kill scale. Keep it sparse and controlled.
- Lightning thickness: let bloom do the work; geometry should be thin.
- Sim order of ops: drive lightning layout first, then water impulses; not the other way around.
- Cache discipline: lock seeds and write everything to disk before high-res renders.
If you want, I can sketch a minimal SOP Solver network for the volume leader and the glass creeper, or a quick HIP-structure outline so you can drop it into your pipeline cleanly.