Create volumetric field
create_volumetric_fieldCreate a pseudo-volumetric noise field by stacking 2D slices, with presets for smoke, nebula, ember, ice, toxic, and mono. Returns container paths, controls, and preview.
Instructions
Build a stacked-slice fake-volumetric noise field: smoke, nebula, ember, ice, toxic or mono palettes. Architecture: Simplex 3D noiseTOP → optional displace+blur → cacheTOP (depth = slice_count) → viewer glslTOP (Beer-Lambert accumulation across slices, baked palette) → nullTOP output. NOTE: this is a stacked-2D-slice approximation, NOT a raymarched volume. There is no per-pixel ray traversal or SDF. For a true raymarcher see the planned create_volumetric_raymarch (L-effort follow-up). Cook cost scales roughly linearly with slice_count × resolution. Default 16 slices is the safe sweet spot; drop to 4–8 on integrated GPUs. Returns a summary JSON with container path, created node paths, the output path, exposed controls, any node errors, warnings, and an inline preview image.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_volumetric_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Container name (must start with a letter, alphanumeric + underscore). | volumetric_field |
| density | No | How opaque/milky the field reads (0 = transparent, 1 = fully opaque). Maps to uDensity in the viewer shader. | |
| color_map | No | Palette baked into the viewer GLSL shader: smoke (grey haze), nebula (purple/magenta), ember (orange/red), ice (blue/cyan), toxic (green), mono (black→white). | smoke |
| turbulence | No | Noise evolution speed and swirl amplitude. Drives the displacement weight and noise period. 0 = flat/still field; skips the displace TOP. | |
| parent_path | No | Parent network where the volumetric_field baseCOMP is created. | /project1 |
| slice_count | No | Number of 2D z-slices stacked into the pseudo-volume. Build-time only — changing it rewires the cache stack. Higher = smoother depth but heavier cook (linear cost). Default 16 is the safe sweet spot. | |
| expose_controls | No | Expose Density, Turbulence and ColorMap knobs on the container. |