Smoke
32 nodes
On this page 32
Add Embers
FunctionThe scene with embers: glowing specks born over a fire that ride its gas upwards, swirl with it, cool from yellow to red and go out. They show in pictures and in flipbooks.
AddEmbers -> Smoke Scene Description
scene: Smoke Scene Description
name: Text
position: Vector3d
size: Vector3d
rate: Number
lifetime: Number
start: Number
end: NumberSmokeSceneDescription AddEmbers(
SmokeSceneDescription scene,
string name,
Vector3d position,
Vector3d size,
double rate = 3000,
double lifetime = 4,
double start = 0,
double end = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| name | Text | — | The embers' name, by which a session moves them (Move Source) and bursts them. |
| position | Vector3d | — | The middle of the box they are born in (m): just over the fire. |
| size | Vector3d | — | That box's size (m) along X, Y and Z: the fire's width, and a few centimetres high. |
| rate | Number | 3000 | Embers per second. |
| lifetime | Number | 4 | How long an ember glows (s) at most. |
| start | Number | 0 | When they start (s). |
| end | Number | 0 | When they stop (s); 0: never. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Add Fire
FunctionThe scene with a fire: a flat burner that gives off fuel, which burns above it into flame, heat and smoke.
AddFire -> Smoke Scene Description
scene: Smoke Scene Description
name: Text
position: Vector3d
size: Vector3d
fuel: Number
start: Number
end: Number
behaveAsFire: TruthSmokeSceneDescription AddFire(
SmokeSceneDescription scene,
string name,
Vector3d position,
Vector3d size,
double fuel = 0.7,
double start = 0,
double end = 0,
bool behaveAsFire = true)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| name | Text | — | The fire's name. |
| position | Vector3d | — | The burner's centre (m). |
| size | Vector3d | — | The burner's size (m) along X, Y and Z; a pan is wide and a few centimetres high. |
| fuel | Number | 0.7 | How much fuel it gives (0.5 to 1 is a strong fire). |
| start | Number | 0 | When it lights (s). |
| end | Number | 0 | When it goes out (s); 0: never. |
| behaveAsFire | Truth | True | Give the scene's gas the behaviour that suits a fire: it rises less hard than plain hot smoke, cools faster, its smoke fades and it swirls more (Set Smoke Behaviour 0.4, 1.6, 0.3, 3). Off keeps the scene's own. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Add Obstacle Box
FunctionThe scene with a solid box that the gas flows round.
AddObstacleBox -> Smoke Scene Description
scene: Smoke Scene Description
name: Text
position: Vector3d
size: Vector3dSmokeSceneDescription AddObstacleBox(
SmokeSceneDescription scene,
string name,
Vector3d position,
Vector3d size)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| name | Text | — | The solid's name. |
| position | Vector3d | — | Its centre (m). |
| size | Vector3d | — | Its size (m) along X, Y and Z. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Add Obstacle Sphere
FunctionThe scene with a solid ball that the gas flows round.
AddObstacleSphere -> Smoke Scene Description
scene: Smoke Scene Description
name: Text
position: Vector3d
radius: NumberSmokeSceneDescription AddObstacleSphere(
SmokeSceneDescription scene,
string name,
Vector3d position,
double radius)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| name | Text | — | The solid's name. |
| position | Vector3d | — | Its centre (m). |
| radius | Number | — | Its radius (m). |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Add Smoke Body
FunctionThe scene with a rigid body in the box, made by the Box, Sphere, Capsule and the other body nodes. The gas flows round it and pushes it: a light body is lifted and blown about, a heavy one stands and parts the plume. Bodies fall, collide with each other and with the scene's solids, and rest on the box's floor; the box's sides are open, to bodies as to gas. The gas feels a sphere, a box and a capsule as they are and any other shape as the box round it.
AddSmokeBody -> Smoke Scene Description
scene: Smoke Scene Description
body: Body DescriptionSmokeSceneDescription AddSmokeBody(
SmokeSceneDescription scene,
BodyDescription body)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| body | Body Description | — | The body. A static one stands where it is, as an obstacle does; a kinematic one is moved by a session's Move Solid. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Add Smoke Source
FunctionThe scene with a ball that gives off smoke: it holds its volume at a density and a temperature, and what is hot rises.
AddSmokeSource -> Smoke Scene Description
scene: Smoke Scene Description
name: Text
position: Vector3d
radius: Number
density: Number
Temperature (K): Number
start: Number
end: NumberSmokeSceneDescription AddSmokeSource(
SmokeSceneDescription scene,
string name,
Vector3d position,
double radius = 0.2,
double density = 1,
double temperature = 450,
double start = 0,
double end = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| name | Text | — | The source's name. |
| position | Vector3d | — | Its centre (m). |
| radius | Number | 0.2 | Its radius (m). |
| density | Number | 1 | The smoke it gives (1 is thick). |
| Temperature (K) | Number | 450 | Its temperature (K); air is at 293, and 450 rises briskly. |
| start | Number | 0 | When it starts (s). |
| end | Number | 0 | When it stops (s); 0: never. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Add Smoke Trigger
FunctionThe scene with a trigger for its bodies, made by the Triggers nodes: at a time, at every interval, or when a body touches something, rises or falls past a height or moves faster than a speed, it pushes a body, releases one that was held, spawns a copy of one or removes one. Triggers are looked at after every step of the bodies, in the order they were added; what they did is in the events of Smoke Bodies. A real-time scene does not take Water In Region, Detonate, Set Wind or Unpin Cloth, and says so here.
AddSmokeTrigger -> Smoke Scene Description
scene: Smoke Scene Description
trigger: Trigger DescriptionSmokeSceneDescription AddSmokeTrigger(
SmokeSceneDescription scene,
TriggerDescription trigger)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| trigger | Trigger Description | — | The trigger. A spawn that repeats has room for 32 bodies the gas flows round; later ones still fall and collide. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Add Sparks
FunctionThe scene with sparks: glowing streaks thrown from a point that fly free of the gas, fall and bounce off the floor and the solids. A fire spitting, a grinder, a fuse. They show in pictures and in flipbooks.
AddSparks -> Smoke Scene Description
scene: Smoke Scene Description
name: Text
position: Vector3d
direction: Vector3d
rate: Number
spread: Number
lifetime: Number
start: Number
end: NumberSmokeSceneDescription AddSparks(
SmokeSceneDescription scene,
string name,
Vector3d position,
Vector3d direction,
double rate = 4000,
double spread = 1,
double lifetime = 1.5,
double start = 0,
double end = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| name | Text | — | The sparks' name, by which a session moves them (Move Source) and bursts them. |
| position | Vector3d | — | Where they come from (m). |
| direction | Vector3d | — | The velocity they are thrown with (m/s). |
| rate | Number | 4000 | Sparks per second. |
| spread | Number | 1 | The speed of the random part of their velocity (m/s). |
| lifetime | Number | 1.5 | How long a spark glows (s). |
| start | Number | 0 | When they start (s). |
| end | Number | 0 | When they stop (s); 0: never. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Export Smoke Flipbook
FunctionRuns the scene and writes a flipbook of it as a PNG with transparency, with its layout beside it as a text file (the grid, the frame size, the frame rate, the camera). Returns the PNG's path.
ExportSmokeFlipbook -> Text
scene: Smoke Scene Description
path: Text
duration: Number
eye: Vector3d
target: Vector3d
columns: Integer
rows: Integer
frameSize: Integer
fieldOfView: Numberstring ExportSmokeFlipbook(
SmokeSceneDescription scene,
string path,
double duration,
Vector3d eye,
Vector3d target,
int columns = 8,
int rows = 8,
int frameSize = 256,
double fieldOfView = 40)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| path | Text | — | The PNG to write; its folder is created if missing. |
| duration | Number | — | How long to run (s). |
| eye | Vector3d | — | Where the camera stands (m). |
| target | Vector3d | — | What it looks at (m). |
| columns | Integer | 8 | Frames in a row. |
| rows | Integer | 8 | Rows of frames. |
| frameSize | Integer | 256 | A frame's width and height in pixels. |
| fieldOfView | Number | 40 | The camera's vertical field of view in degrees. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Export Smoke Flipbook With Motion
FunctionRuns the scene and writes a flipbook of it with its motion: the frames as a PNG with transparency, the motion as a second PNG beside it (the same name ending in .motion.png), and a text file with the layout, the motion's scale and how a player uses it. Returns the two PNGs' paths, the frames first.
ExportSmokeFlipbookWithMotion -> Text Array
scene: Smoke Scene Description
path: Text
duration: Number
eye: Vector3d
target: Vector3d
columns: Integer
rows: Integer
frameSize: Integer
fieldOfView: Numberstring[] ExportSmokeFlipbookWithMotion(
SmokeSceneDescription scene,
string path,
double duration,
Vector3d eye,
Vector3d target,
int columns = 8,
int rows = 8,
int frameSize = 256,
double fieldOfView = 40)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| path | Text | — | The frames' PNG to write; its folder is created if missing. |
| duration | Number | — | How long to run (s). |
| eye | Vector3d | — | Where the camera stands (m). |
| target | Vector3d | — | What it looks at (m). |
| columns | Integer | 8 | Frames in a row. |
| rows | Integer | 8 | Rows of frames. |
| frameSize | Integer | 256 | A frame's width and height in pixels. |
| fieldOfView | Number | 40 | The camera's vertical field of view in degrees. |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Export Smoke Vdb
FunctionRuns the scene and writes the gas at every frame as an OpenVDB file, which Houdini, Blender and other renderers read: three volumes named density, temperature and flame, in metres and Divooka's axes (+Z up), air left out. Nothing is kept in memory, so a long run of a large box costs only its files. Returns the files written.
ExportSmokeVdb -> Text Array
scene: Smoke Scene Description
folder: Text
duration: Number
framesPerSecond: Number
prefix: Textstring[] ExportSmokeVdb(
SmokeSceneDescription scene,
string folder,
double duration = 2,
double framesPerSecond = 24,
string prefix = "smoke")Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| folder | Text | — | The folder; created if missing. |
| duration | Number | 2 | How long to run (s). |
| framesPerSecond | Number | 24 | Frames per second of simulated time. |
| prefix | Text | smoke | File name prefix: files are prefix.0001.vdb and on. |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Export Smoke Vdb Frame
FunctionWrites one frame of a recorded run as an OpenVDB file with its three volumes (density, temperature, flame) and returns the path.
ExportSmokeVdbFrame -> Text
result: Smoke Result
frame: Integer
path: Textstring ExportSmokeVdbFrame(
SmokeResult result,
int frame,
string path)Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — | The run. |
| frame | Integer | — | The recorded frame, from 0. |
| path | Text | — | The file to write; its folder is created if missing. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Flipbook Colour
FunctionA flipbook's frames: one picture with transparency, frames from the left and rows from the top, the colour premultiplied by the alpha.
FlipbookColour(sheet: Flipbook Sheet) -> Pixel Image
PixelImage FlipbookColour(FlipbookSheet sheet)
Parameters
| name | type | default | description |
|---|---|---|---|
| sheet | Flipbook Sheet | — | A flipbook made with its motion. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Flipbook Motion
FunctionA flipbook's motion, pixel for pixel with its frames: red is how far what the pixel shows moves to the right until the next frame and green how far down, as 0.5 + 0.5 × shift / scale, in frame widths and heights (so mid grey in both is still). Flipbook Motion Scale is the scale. Between frames A and B at a share t, a player reads A at uv − t × shift and B at uv + (1 − t) × shift, each by its own shift, and blends the two by t.
FlipbookMotion(sheet: Flipbook Sheet) -> Pixel Image
PixelImage FlipbookMotion(FlipbookSheet sheet)
Parameters
| name | type | default | description |
|---|---|---|---|
| sheet | Flipbook Sheet | — | A flipbook made with its motion. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Flipbook Motion Scale
FunctionThe shift a flipbook's motion picture has at the ends of its range (red or green of 0 or 255), in frame widths or heights from a frame to the next.
FlipbookMotionScale(sheet: Flipbook Sheet) -> Number
double FlipbookMotionScale(FlipbookSheet sheet)
Parameters
| name | type | default | description |
|---|---|---|---|
| sheet | Flipbook Sheet | — | A flipbook made with its motion. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Is Realtime Available
FunctionWhether this machine can run the real-time solvers: it needs a graphics card that speaks Vulkan.
IsRealtimeAvailable() -> Truth
bool IsRealtimeAvailable()
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
New Smoke
FunctionA box of still air for smoke and fire to live in, standing on the ground: open at its sides and top, closed at its floor.
NewSmoke -> Smoke Scene Description
size: Vector3d
position: Vector3d
cellSize: Number
sparse: Truth
halfPrecision: TruthSmokeSceneDescription NewSmoke(
Vector3d size,
Vector3d position,
double cellSize = 0.05,
bool sparse = false,
bool halfPrecision = false)Parameters
| name | type | default | description |
|---|---|---|---|
| size | Vector3d | — | The box's size (m) along X, Y and Z (up). It is made of whole cells counted in eights, so each side is rounded up to the next multiple of eight cells. |
| position | Vector3d | — | The middle of the box's floor (m). |
| cellSize | Number | 0.05 | The size of a cell (m): the smallest detail the gas has. Halving it is eight times the cells. |
| sparse | Truth | False | Work on and store only the parts of the box that hold something: for a large box that is mostly empty. |
| halfPrecision | Truth | False | Store the gas in 16-bit numbers: two thirds of the memory and a faster step. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Realtime Device
FunctionThe graphics card the real-time solvers run on, or what is missing when there is none.
RealtimeDevice() -> Text
string RealtimeDevice()
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Set Smoke Behaviour
FunctionThe scene with the gas behaving differently.
SetSmokeBehaviour -> Smoke Scene Description
scene: Smoke Scene Description
buoyancy: Number
cooling: Number
fading: Number
swirl: NumberSmokeSceneDescription SetSmokeBehaviour(
SmokeSceneDescription scene,
double buoyancy = 1,
double cooling = 0.5,
double fading = 0,
double swirl = 2)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| buoyancy | Number | 1 | How strongly hot gas rises (1 is air's own). |
| cooling | Number | 0.5 | How fast the gas loses its heat (per second). |
| fading | Number | 0 | How fast smoke fades (per second; 0: it stays). |
| swirl | Number | 2 | How much small swirls are kept alive (0: none; 2 to 4: lively). |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Set Smoke Look
FunctionThe scene with the gas looking differently in pictures and flipbooks.
SetSmokeLook -> Smoke Scene Description
scene: Smoke Scene Description
thickness: Number
brightness: Number
sunDirection: Vector3dSmokeSceneDescription SetSmokeLook(
SmokeSceneDescription scene,
double thickness,
double brightness,
Vector3d sunDirection)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| thickness | Number | — | How thick the smoke looks: what a metre of it takes from the light. |
| brightness | Number | — | How bright the fire looks. |
| sunDirection | Vector3d | — | Where the sun stands, as a direction towards it. |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Simulate Smoke
FunctionRuns the scene for a time and records the gas at every frame: its smoke, its temperature and its flame, for the volume nodes to read. A frame of a box of a million cells is 12 MB, so record few frames of a large box (Keep Every).
SimulateSmoke -> Smoke Result
scene: Smoke Scene Description
duration: Number
framesPerSecond: Number
keepEvery: IntegerSmokeResult SimulateSmoke(
SmokeSceneDescription scene,
double duration = 2,
double framesPerSecond = 30,
int keepEvery = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| duration | Number | 2 | How long to run (s). |
| framesPerSecond | Number | 30 | Frames per second of simulated time. |
| keepEvery | Integer | 1 | Record every frame (1), every second one (2) and so on; the last frame is always recorded. |
Returns
| result | Smoke Result |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Amount
FunctionAll the smoke a recorded frame holds: the volume of smoke of density 1 (m³).
SmokeAmount(result: Smoke Result, frame: Integer) -> Number
double SmokeAmount(SmokeResult result, int frame)
Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — | The run. |
| frame | Integer | — | The recorded frame, from 0. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Bodies
FunctionThe motion of the scene's bodies and solids over a recorded run, as a result the Results nodes read (Body Position, Body Path, Bodies Mesh) and the 3D view plays. Its frames are the run's own: frame 3 here is the moment of Smoke Density Volume's frame 3.
SmokeBodies(result: Smoke Result) -> Simulation Result
SimulationResult SmokeBodies(SmokeResult result)
Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — | The run of a scene that has bodies. |
Returns
| result | Simulation Result |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Density Volume
FunctionThe smoke of a recorded frame as a volume: one voxel per cell, in metres and Divooka's axes, cells without smoke left out.
SmokeDensityVolume -> VdbFloatGrid
result: Smoke Result
frame: IntegerVdbFloatGrid SmokeDensityVolume(SmokeResult result, int frame)
Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — | The run. |
| frame | Integer | — | The recorded frame, from 0. |
Returns
| result | VdbFloatGrid |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Flame Volume
FunctionHow brightly a recorded frame's gas burns, as a volume; cells without flame are left out.
SmokeFlameVolume -> VdbFloatGrid
result: Smoke Result
frame: IntegerVdbFloatGrid SmokeFlameVolume(SmokeResult result, int frame)
Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — | The run. |
| frame | Integer | — | The recorded frame, from 0. |
Returns
| result | VdbFloatGrid |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Flipbook
FunctionRuns the scene and takes frames of the gas by itself, evenly over the run, into one picture with transparency: a flipbook, the sprite sheet a game plays smoke and fire back from. Frames run from the left, rows from the top; the colour is premultiplied by the alpha.
SmokeFlipbook -> Pixel Image
scene: Smoke Scene Description
duration: Number
eye: Vector3d
target: Vector3d
columns: Integer
rows: Integer
frameSize: Integer
fieldOfView: NumberPixelImage SmokeFlipbook(
SmokeSceneDescription scene,
double duration,
Vector3d eye,
Vector3d target,
int columns = 4,
int rows = 4,
int frameSize = 128,
double fieldOfView = 40)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| duration | Number | — | How long to run (s). |
| eye | Vector3d | — | Where the camera stands (m). |
| target | Vector3d | — | What it looks at (m). |
| columns | Integer | 4 | Frames in a row. |
| rows | Integer | 4 | Rows of frames. |
| frameSize | Integer | 128 | A frame's width and height in pixels. |
| fieldOfView | Number | 40 | The camera's vertical field of view in degrees. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Flipbook With Motion
FunctionRuns the scene and makes a flipbook of it together with its motion: beside each frame, how far what each pixel shows moves across the frame until the next frame, taken from the gas's own velocity. A game that plays the flipbook slower than it was taken slides each frame towards the next by it, where fading one into the other would ghost. Flipbook Colour and Flipbook Motion read the two pictures; both come from one run, which is why they are made together.
SmokeFlipbookWithMotion -> Flipbook Sheet
scene: Smoke Scene Description
duration: Number
eye: Vector3d
target: Vector3d
columns: Integer
rows: Integer
frameSize: Integer
fieldOfView: NumberFlipbookSheet SmokeFlipbookWithMotion(
SmokeSceneDescription scene,
double duration,
Vector3d eye,
Vector3d target,
int columns = 4,
int rows = 4,
int frameSize = 128,
double fieldOfView = 40)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| duration | Number | — | How long to run (s). |
| eye | Vector3d | — | Where the camera stands (m). |
| target | Vector3d | — | What it looks at (m). |
| columns | Integer | 4 | Frames in a row. |
| rows | Integer | 4 | Rows of frames. |
| frameSize | Integer | 128 | A frame's width and height in pixels. |
| fieldOfView | Number | 40 | The camera's vertical field of view in degrees. |
Returns
| result | Flipbook Sheet |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Frame Count
FunctionHow many frames a run recorded.
SmokeFrameCount(result: Smoke Result) -> Integer
int SmokeFrameCount(SmokeResult result)
Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Frame Time
FunctionThe simulated time of a recorded frame (s).
SmokeFrameTime(result: Smoke Result, frame: Integer) -> Number
double SmokeFrameTime(SmokeResult result, int frame)
Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — | |
| frame | Integer | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Height
FunctionHow high a recorded frame's smoke has risen: the height (m) of the highest cell with visible smoke, above the box's floor.
SmokeHeight(result: Smoke Result, frame: Integer) -> Number
double SmokeHeight(SmokeResult result, int frame)
Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — | The run. |
| frame | Integer | — | The recorded frame, from 0. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Picture
FunctionRuns the scene for a time and takes a picture of it: the ground, the solids and the gas, lit by the sun.
SmokePicture -> Pixel Image
scene: Smoke Scene Description
time: Number
eye: Vector3d
target: Vector3d
width: Integer
height: Integer
fieldOfView: NumberPixelImage SmokePicture(
SmokeSceneDescription scene,
double time,
Vector3d eye,
Vector3d target,
int width = 640,
int height = 480,
double fieldOfView = 40)Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
| time | Number | — | How long to run before the picture (s). |
| eye | Vector3d | — | Where the camera stands (m). |
| target | Vector3d | — | What it looks at (m). |
| width | Integer | 640 | The picture's width in pixels. |
| height | Integer | 480 | The picture's height in pixels. |
| fieldOfView | Number | 40 | The camera's vertical field of view in degrees. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation
Smoke Temperature Volume
FunctionHow much hotter than the air around a recorded frame's gas is (K), as a volume; cells at the air's temperature are left out.
SmokeTemperatureVolume -> VdbFloatGrid
result: Smoke Result
frame: IntegerVdbFloatGrid SmokeTemperatureVolume(
SmokeResult result,
int frame)Parameters
| name | type | default | description |
|---|---|---|---|
| result | Smoke Result | — | The run. |
| frame | Integer | — | The recorded frame, from 0. |
Returns
| result | VdbFloatGrid |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke
- Package
- Physics Simulation