Smoke Session
19 nodes
On this page 19
Advance
FunctionAdvances the gas by a span of simulated time (s), in steps of at most a sixtieth of a second.
Advance(Smoke Session: Smoke Session, seconds: Number)
void Advance(SmokeSession Smoke Session, double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| seconds | Number | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Body Position
FunctionWhere a body or a solid is now (m).
BodyPosition -> Vector3d
Smoke Session: Smoke Session
name: TextVector3d BodyPosition(SmokeSession Smoke Session, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| name | Text | — | Its name. |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Body Rotation
FunctionHow a body is turned now.
BodyRotation -> Quaterniond
Smoke Session: Smoke Session
name: TextQuaterniond BodyRotation(
SmokeSession Smoke Session,
string name)Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| name | Text | — | Its name. |
Returns
| result | Quaterniond |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Body Velocity
FunctionHow fast a body moves now (m/s).
BodyVelocity -> Vector3d
Smoke Session: Smoke Session
name: TextVector3d BodyVelocity(SmokeSession Smoke Session, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| name | Text | — | Its name. |
Returns
| result | Vector3d |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Burst Particles
FunctionHas embers or sparks give off a number of particles at once, in the next step: a fire spitting when something falls into it.
BurstParticles
Smoke Session: Smoke Session
name: Text
count: Integervoid BurstParticles(
SmokeSession Smoke Session,
string name,
int count)Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| name | Text | — | The embers' or sparks' name. |
| count | Integer | — | How many particles. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Capture Bodies
FunctionThe scene's bodies and solids as they are now, as a moment the 3D view draws.
CaptureBodies(Smoke Session: Smoke Session) -> Simulation Frame
SimulationFrame CaptureBodies(SmokeSession Smoke Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — |
Returns
| result | Simulation Frame |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Density Volume
FunctionThe smoke as it is now, as a volume: one voxel per cell, in metres and Divooka's axes, cells without smoke left out.
DensityVolume(Smoke Session: Smoke Session) -> VdbFloatGrid
VdbFloatGrid DensityVolume(SmokeSession Smoke Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — |
Returns
| result | VdbFloatGrid |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Dispose
FunctionEnds the session and gives its memory on the graphics card back.
Dispose(Smoke Session: Smoke Session)
void Dispose(SmokeSession Smoke Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Frame
FunctionHow many frames Step Frame has stepped.
Frame(Smoke Session: Smoke Session) -> Integer
int Frame(SmokeSession Smoke Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Scene
FunctionThe scene the session started from (what was moved since is not in it).
Scene(Smoke Session: Smoke Session) -> Smoke Scene Description
SmokeSceneDescription Scene(SmokeSession Smoke Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — |
Returns
| result | Smoke Scene Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Time
FunctionSimulated time (s).
Time(Smoke Session: Smoke Session) -> Number
double Time(SmokeSession Smoke Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Move Solid
FunctionMoves a solid, or a kinematic body, to a new place (m). It gets there over the next step and pushes the gas in its way as it goes.
MoveSolid
Smoke Session: Smoke Session
name: Text
position: Vector3dvoid MoveSolid(
SmokeSession Smoke Session,
string name,
Vector3d position)Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| name | Text | — | The solid's name. |
| position | Vector3d | — | Its new centre (m). |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Move Source
FunctionMoves a source of smoke, a fire, embers or sparks to a new place (m); it gives off from there on.
MoveSource
Smoke Session: Smoke Session
name: Text
position: Vector3dvoid MoveSource(
SmokeSession Smoke Session,
string name,
Vector3d position)Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| name | Text | — | The source's name. |
| position | Vector3d | — | Its new centre (m). |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Push Body
FunctionGives a moving body a push at its centre: an impulse (N·s), its mass times the change of velocity.
PushBody
Smoke Session: Smoke Session
name: Text
impulse: Vector3dvoid PushBody(
SmokeSession Smoke Session,
string name,
Vector3d impulse)Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| name | Text | — | The body's name. |
| impulse | Vector3d | — | The impulse (N·s). |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Render
FunctionA picture of the scene as it is now: the ground, the solids and the gas, lit by the sun.
Render -> Pixel Image
Smoke Session: Smoke Session
eye: Vector3d
target: Vector3d
width: Integer
height: Integer
fieldOfView: NumberPixelImage Render(
SmokeSession Smoke Session,
Vector3d eye,
Vector3d target,
int width = 640,
int height = 480,
double fieldOfView = 40)Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| 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
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Smoke Amount
FunctionAll the smoke in the box now: the volume of smoke of density 1 (m³).
SmokeAmount(Smoke Session: Smoke Session) -> Number
double SmokeAmount(SmokeSession Smoke Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Step Frame
FunctionAdvances the gas by one frame of a frame rate.
StepFrame(Smoke Session: Smoke Session, framesPerSecond: Number)
void StepFrame(
SmokeSession Smoke Session,
double framesPerSecond = 30)Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — | |
| framesPerSecond | Number | 30 |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Take Events
FunctionWhat the scene's triggers have done since the last call, oldest first: an event for each time one fired, with its time, its place and the body it was about. Empty when nothing fired, or the scene has no triggers.
TakeEvents(Smoke Session: Smoke Session) -> Simulation Event Array
SimulationEvent[] TakeEvents(SmokeSession Smoke Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Smoke Session | Smoke Session | — |
Returns
| result | Simulation Event Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation
Start
FunctionStarts a session from a smoke scene.
Start(scene: Smoke Scene Description) -> Smoke Session
SmokeSession Start(SmokeSceneDescription scene)
Parameters
| name | type | default | description |
|---|---|---|---|
| scene | Smoke Scene Description | — | The scene. |
Returns
| result | Smoke Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Smoke Session
- Package
- Physics Simulation