Here’s a high-level, step-by-step Houdini workflow to build a stormy, miniature ocean inside a light bulb—with crashing waves, swirling clouds and electrifying lightning strikes—in a fully procedural, production-friendly manner. I’m assuming you know the Houdini shelf tools and contexts, so I’ll focus on structure, best practices, and any custom VEX/VOP ideas you might need.
-
Project & Pipeline Setup
• Create a new HIP, set up proper geometry, sim, cache and render directories (e.g. HIP/geo,HIP/sims/flip, HIP/sims/pyro,HIP/rop).
• Use a TOP network (PDG) or scripted ROPs to automate caching of FLIP, PYRO and ROP renders—so you can re-run only the nodes that change.
-
Model: Light Bulb Geometry (SOP)
• Base Bulb: Model a classic bulb shape with a revolve SOP (profile spline → Revolve).
• Filament & Cap: Model or import standard filament & metal cap.
• Partitioning: Inside-wall normals point inward for shading convenience, and create groups: bulb_glass, water_surface, container_interior.
• Nulls & Subnets: Wrap geometry in a digital asset (“bulb_container”) so you can tweak size, thickness or even switch to a custom shape later.
-
Ocean Surface & FLIP Simulation (DOP)
– Setup: In SOPs, create a water source sphere/cup matching the bulb’s interior.
• Source: Use a sphere with group water_src.
• FLIP Tank: Use a FLIP Tank DOP or manual setup:
• Create FLIP Object, assign collider from bulb interior.
• FLIP Solver: Viscosity = 0.0, surface tension tuned for small-scale detail.
• Initial Conditions: Position your source just above halfway, let it settle or animate a fill-up.
– Waves & Storm Churn:
• Embed a volume-based velocity field into the FLIP container to simulate internal currents—create a SOP VDB of curl noise (e.g. pyro_noise with high frequency), and feed it into a Volume Motion DOP.
• Alternatively, use a SOP Solver inside DOPs to inject per-frame vorticity via VEX (e.g. attribute wrangle:
vector p = @P; vector n = curl(noise( p * chf("noise_freq") )); @v += n * chf("vortex_strength") * dt;
– Secondary Detail: Activate spray/foam/gas in the FLIP Solver, cache as separate particle streams for compositing or rendering as true spray.
-
Volumetric Clouds & Rain Inside (DOP)
• Pyro Setup:
– Create a pyro container in the bulb (VDB boundary from interior surface).
– Source a low-density density field with billowy noise; drive it with swirling velocities (same curl noise as FLIP, but lower frequency).
– Adjust temperature or buoyancy negative so clouds sink/drift realistically.
• Masking: VDB Activate only inside the water’s above-surface region, or below, to keep clouds “floating” above water.
• Rain Drops (Optional): Use a POP network, emit particles from the top of the bulb volume, with gravity and collision against water surface, spawning small splash emitters.
-
Procedural Lightning Strikes (SOP → DOP → ROP)
Approach A: SOP Solver on curves
- Generate random anchor points on water surface (
water_surface group) every time step (use a SOP Solver with a small HScript/VEX snippet to pick random prim + uv).
- In each step, draw a branching lightning curve:
• Use a for-each depth loop in VEX: subdivide segment, offset midpoint by a random vector scaled by a “jaggedness” parameter.
• Store the curve in a detail attribute, output as a polyline.
- Stylize: Use a wireframe SOP or polywire for thickness, assign emissive shader.
Approach B: Pyro Spark Method
- Convert the curve to a tiny pyro emission; inside Mantra/Karma, treat it as a glowing volume with high emission and noise flicker.
Flicker Control:
• Use a CHOP network or a VEX sinusoidal noise (sin($T*freq + random(seed))) to drive an “emission_intensity” parameter on the shader.
Impact on Water/Glass:
• On strike frames, trigger a local shock-wave: emit a sphere of velocity into the FLIP sim (via a SOP Solver in DOPs), and add a chromatic dispersion/noise bump in the glass shader.
-
Shading & Materials (SHOP/VOP or Karma XPU)
• Glass Bulb:
– Principled or CarPaint: IOR ~1.52, thin-walled with thickness attribute; absorption/gain for subtle blue tint.
– Roughness: near 0 but add micro-scratches via a grunge map.
• Water Surface:
– Principled, IOR 1.33, thin refraction/dispersion for slight rainbow edges.
– Foam & Spray: use particle Color → shader Lerp between water and foam (white), driven by particle age or velocity.
• Volumetric Clouds:
– Pyro shader: light fog, scattering tuned so you see silhouette but it doesn’t occlude too heavily.
• Lightning:
– Emissive shader: color from pale blue to white, attach a slight halo (volume or Corona/Atmospheric Light) for glow.
-
Lighting & Camera
• Interior Emission: Add a small area light at the base filament to illuminate from inside, tinted slightly blue/green.
• HDRI: Use a dim studio HDRI to pick up realistic reflections in the bulb glass.
• Rim Light: Place a backlight to highlight the bulb silhouette.
• Camera: Macro lens (100–150 mm focal length), depth-of-field enabled to softly blur background.
-
Simulation & Cache Management
• FLIP & PYRO: Lower res for test turns, then ramp up. Use VDB resample SOP to match desired quality.
• External Caching: Write out .bgeo.sc and .vdb files per frame. Keep your DOP networks unlocked so you can scrub caches without re-simulation.
• USD/LOPs (Optional): If you’re on Solaris, assemble your bulbs, lights, geometry and volumes in a LOP network for a fully non-destructive, layered setup.
-
Rendering & AOVs
• Render Engines: Mantra, Karma XPU or Redshift—ensure refractive ray depth ≥ 6, reflection depth ≥ 4.
• AOVs to export:
– Beauty, diffuse, reflection, refraction, emission (for lightning), volume, depth, ID mattes.
• Post-glow: In comp, blur the emission AOV for bloom around lightning, tint it with subtle color.
-
Compositing & Final Touches
• Core passes: combine water, glass, volume and lightning carefully—use depth mattes to dodge/burn.
• Color grade: emphasize cold-blue tones, boost contrast on lightning.
• Add subtle film grain and chromatic aberration, especially around the glass edges to sell realism.