Tuesday, April 21, 2015

Real-time smoke and fire simulation.

Input parameters:
- area
- gravity
- combustion (?)
- density (of surrounding medium)
- fluid buoyancy (to calc speed in opposite direction to gravity)
- turbulence (or vorticity)

Particle properties:
- temperature
- lifespan
- seed

Uniform temperature at vertex is interpolated and used by a fragment shader. So, temperature can be an attribute, updated each frame.

No comments:

Post a Comment