Skip to content
Project

Procedural Flames

Copyright

© Daniel Wenzel.

Daniel Wenzel

Developing a procedural model for decorative flame contours.

Objective

The objective was to generate the decorative flames found in the Thrasher logo and Hot Wheels graphics: broad connected forms, rounded recesses, narrow necks and pointed tips. Unequal gaps at different heights produce forks; paired curves connect each recess to the neighboring tips.

Copyright

© respective rights holders: Thrasher Magazine and Mattel / Hot Wheels.

Existing methods

The reference search returned hand-drawing tutorials close to this appearance, while procedural examples emphasized particles, distorted textures and fluid simulation. These methods organize fire through density, flow and emitted light. The target here is a single filled contour whose spacing and curvature remain legible without shading.

Nguyen’s Vulcan study compares particle and texture-distortion approaches. Nguyen, Fedkiw and Jensen model fuel and hot gases with fluid equations. The examples below show how these representations differ visually from a decorative contour. 1, 2

Copyright

© respective rights holders.

Version 1: allocation test

Version 1 started with bulged spikes. Each pointed profile widens into a rounded body, narrows near the tip and closes at a point.

Copyright

© Daniel Wenzel.

Repeating this shape gives a regular fringe. Shared allocation lets neighboring spikes gain or lose width, creating a changing structure across the input.

The source is projected onto a growth axis and its perpendicular. Fixed sites compete for intervals along the perpendicular axis. A periodic age changes each site’s weight, shifting the boundaries or removing an interval. This is a one-dimensional power-cell construction:

power distanceᵢ(u) = (u − xᵢ)² − wᵢ
boundaryᵢⱼ = (xⱼ² − xᵢ² + wᵢ − wⱼ) / [2(xⱼ − xᵢ)]

Copyright

© Daniel Wenzel.

A shared saddle field places valleys between peaks. Paired cubic profiles form the bowl, body, neck and tip; taper narrows the lower stem. Shrinking intervals reduce their contribution to the connected silhouette. A separate travelling wave bends the profile upward through time.

Copyright

© Daniel Wenzel.

Roots follow the source boundary, while a fading slope correction aligns the upper form with the growth direction. The profile is unioned with the source and fitted to cubic paths, preserving original straight segments and corners.

Copyright

© Daniel Wenzel.

The test established a shared structure, but indirect control of the recesses through peaks and saddles did not produce the intended shape. Version 2 replaced this approach with explicit circular gaps.

Version 2: circular negative spaces

Version 2 is the working method. The sketch places round gaps at different heights and constructs pointed forms between them. A low gap beneath higher neighbors produces a fork. Branching follows from the arrangement of negative space.

Copyright

© Daniel Wenzel.

  1. Source. Select the emitting boundary.
  2. Targets. Even projected spacing; unequal vertical lifts.
  3. Circular gaps. Seed unequal radius requests, then relax centers and constrain overlaps.
  4. Tangents. Find contacts from candidate tips to neighboring gaps.
  5. Curved sides. Follow the bowls and narrow toward shared tips.
  6. Silhouette. Close on the source and combine the fills.

Copyright

© Daniel Wenzel.

The six views show one evaluated state. All geometry is solved in orthonormal growth coordinates, keeping circles round for any emission direction. Site count comes from projected width rather than contour length.

Targets are evenly spaced perpendicular to the growth direction and vary in height. Uncapped radius requests use a separate seeded noise channel. The height-noise control changes the targets, not this radius-noise term. At full influence, r = P(0.52 + 0.25n) × circleSize, where P is actual site spacing and n is the seeded radius sample. These unequal requests are capped by 16% of growth height, the target’s lift minus the source gap, and available clearance. Up to 24 relaxation iterations combine attraction, overlap repulsion and restoring springs. A final packing pass can reduce radii further to maintain neighbor clearance. Vertically separated circles can overlap in horizontal projection.

Candidate tips define tangent contacts with adjacent circles. These contacts guide continuous curved flanks. Handle lengths are constrained by the local bowl radius and curvature to reduce overshoot; each paired flank narrows toward a shared tip. The new fill is joined to the source and fitted to cubic paths.

Copyright

© Daniel Wenzel.

Algorithm refinement

Separate studies tested distribution, contour shape and source attachment. The captures below retain intermediate geometry, including defects that informed the constraints.

Copyright

© Daniel Wenzel.

Copyright

© Daniel Wenzel.

Copyright

© Daniel Wenzel.

Later checks addressed sheltered surfaces, short attachment spans and moving sites at run boundaries. Horizontal target noise was removed to stabilize spacing. Smoothing was applied consistently to distribution, travel and packing.

Emission surfaces

Local outward-facing edges can include regions under an overhang or inside a counter. Directional exterior selection instead finds surfaces exposed along the growth direction before distributing sites. The original source remains the base fill.

Copyright

© Daniel Wenzel.

Connected emission keeps exposed valleys and physical cliffs in one distribution run. Undersides and hull walls spanning empty space remain boundaries. Gaussian smoothing rounds the projected surface; the same surface drives site travel and packing clearance.

Copyright

© Daniel Wenzel.

Runs narrower than 1.25 times the requested spacing use a single curved tongue scaled to the available span. On wider runs, travelling circles fade at the ends without switching to this fallback.

Animation

V1 separates changing cell allocation from the upward travelling bend. V2 separates target-height change, travel along the source and upper-tip wiggle. Freezing one contribution leaves the others available.

Copyright

© Daniel Wenzel.

Copyright

© Daniel Wenzel.

One travel step advances by one actual site pitch. Site weight, radius, margin and packing force fade together at each boundary. Tip wiggle bends the upper curves without deforming the circular gaps.

Each state is evaluated directly from source, settings and normalized time, without playback history. Integer cycle counts close the loop. The isolated motion studies separate the three V2 contributions.

Parameters

Each row varies one control with source, seed, time and viewing scale fixed. Units refer to a 1000 u reference scale. Declared ranges describe the controls; they do not guarantee useful geometry for every combination.

Point spacing

Copyright

© Daniel Wenzel.

Height variation

Copyright

© Daniel Wenzel.

Circle size

Copyright

© Daniel Wenzel.

Circle following

Copyright

© Daniel Wenzel.

Surface smoothing

Copyright

© Daniel Wenzel.

Direction

Direction rotates the construction axes. Spacing remains perpendicular to growth, and exposure is recomputed along the chosen direction.

Copyright

© Daniel Wenzel.

Copyright

© Daniel Wenzel.

Results

The working V2 method uses constrained circular gaps to generate continuous vector contours attached to the source. The examples below show its final construction and application across an alphabet and a word.

Dense packing and steep joins can still produce intersections before the contours are unioned. Loop closure is verified, but geometric validity across the full parameter space remains unresolved.

Copyright

© Daniel Wenzel.

Copyright

© Daniel Wenzel.

Copyright

© Daniel Wenzel.

References and sources

  1. Hubert Nguyen. Fire in the “Vulcan” Demo. GPU Gems, chapter 6, 2004. A primary account of particle, distortion and video-sprite approaches.
  2. Duc Quang Nguyen, Ronald Fedkiw and Henrik Wann Jensen. Physically Based Modeling and Animation of Fire. SIGGRAPH, 2002. Fluid-based fire modeling and rendering.
  3. Philip J. Schneider. An Algorithm for Automatically Fitting Digitized Curves. Graphics Gems, 1990. Reference for the cubic fitting stage.