Studio Yotsuba
Back to Node List

Fx Domain 2D

fx_domain_2d

Defines the frame domain for deterministic pixel FX.

Reviewed
Guide available

Output Ports

NameTypeDescription
FX
fx
FxState2D
FX state document
Frame Count
frame_count
Int
Total frame count defined by this FX domain.
FPS
fps
Int
Playback FPS defined by this FX domain.
Summary
summary
Text
Short summary of the current FX domain.

Parameters

NameTypeDefaultRangeDescription / Options
Width
width
Int
324–512

Frame width in pixels for the FX lane.

Height
height
Int
324–512

Frame height in pixels for the FX lane.

Total Frames
total_frames
Int
00–120

How many frames the deterministic FX lane should generate (0 = project default).

FPS
fps
Int
00–60

Playback FPS used when previewing or baking the FX lane (0 = project default).

Loop
loop_enabled
Bool
true—

Marks this FX lane as loop-oriented.

Wrap Horizontally
wrap_x
Bool
false—

Moves particles leaving the left or right edge to the opposite edge. Enable this for horizontally repeating rain, snow, mist, or sparks.

Wrap Vertically
wrap_y
Bool
false—

Moves particles leaving the top or bottom edge to the opposite edge. Enable this only when the effect should repeat vertically as a tile.

Seed
seed
Int
10–999999

Deterministic random seed for emitter jitter and force variation.

Overview

Defines the time and spatial domain that forms the foundation of particle FX such as flames, smoke, and splashes. Always place it first in an FX lane and use it to set the size, frame count, FPS, and seed. Add content downstream with fx_emitter_2d and fx_force.

Usage tips

  • The standard FX lane is fx_domain_2d → fx_emitter_2d → fx_force → fx_rasterize → (finishing) → fx_bake_spritesheet. Build the complete lane first, then tune each stage.
  • Start with a small total_frames, around 6–10. Pixel-art FX often look best with crisp movement across only a few frames.
  • Treat seed as the reroll for the entire FX. If you do not like the shape, changing the seed is the quickest fix.

Related nodes

  • fx_emitter_2d / fx_force — add content to the state
  • fx_rasterize — converts the state to an image
  • fx_bake_spritesheet — performs the final bake

Read this first

  • Fx Domain 2D does not output an image by itself.
  • It creates the base FX state.
  • Add content with Fx Emitter 2D and Fx Force, then convert it to an image with Fx Rasterize.

When to use it

  • When starting a short-frame FX such as a flame, smoke plume, or splash
  • When you plan to bake the result later with Fx Bake SpriteSheet
  • When creating the base state before Palette Quantize or Pixel Cleanup

The most basic setup

  1. Add Fx Domain 2D.
  2. Set width / height / total_frames / fps.
  3. Connect fx to Fx Emitter 2D.

The minimal lane is:

FxDomain2D -> FxEmitter2D -> FxRasterize -> Preview

Example

  • width = 32
  • height = 32
  • total_frames = 8
  • fps = 12
  • loop_enabled = true
  • seed = 1

At this point, the contents of fx have approximately this meaning:

{
  "version": 1,
  "domain": {
    "width": 32,
    "height": 32,
    "total_frames": 8,
    "fps": 12,
    "loop_enabled": true,
    "seed": 1
  },
  "emitters": [],
  "forces": []
}

Notes

  • Changing seed changes the result even with the same emitter and force settings.
  • total_frames and fps become the source of truth for Fx Bake SpriteSheet downstream.
  • P11 FX is a lightweight, bake-first FX lane, not a full fluid simulation.
Back to Node List