Scene kit command

render.trace.start

Path Trace

Starts a path-traced render (bounces, samples, denoise) in steps; answers its progress. Continue with `render.trace.step`.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of render.trace.start
NameTypeRequiredDescription
bouncesintegernoThe longest light path, in bounces (4)
collectbooleannoTrace nothing here: merge the sums of workers' shards (false)
denoisebooleannoSmooth the remaining noise away (false)
framenumbernoThe frame to render; the current frame when left out
samplesintegernoSamples per pixel, 1 to 4096 (64)
seedintegernoChanges the noise pattern (0)
volumeBouncesintegernoHow often light may scatter in a volume before the path ends (0: each point in a volume is lit directly only)
waitbooleannoRender to the end and answer the image at once (false)

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "render.trace.start" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: bounces, collect, denoise, frame, samples, seed, volumeBounces, wait. scene_run answers the step’s result in completed[i].result.

Result

Result of render.trace.start
NameTypeRequiredDescription
donebooleanno
fractionnumberno
heightintegerno
samplesintegerno
targetintegerno
widthintegerno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "done": {
      "type": "boolean"
    },
    "fraction": {
      "type": "number"
    },
    "height": {
      "type": "integer"
    },
    "samples": {
      "type": "integer"
    },
    "target": {
      "type": "integer"
    },
    "width": {
      "type": "integer"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "bounces": {
      "description": "The longest light path, in bounces (4)",
      "type": "integer"
    },
    "collect": {
      "description": "Trace nothing here: merge the sums of workers' shards (false)",
      "type": "boolean"
    },
    "denoise": {
      "description": "Smooth the remaining noise away (false)",
      "type": "boolean"
    },
    "frame": {
      "description": "The frame to render; the current frame when left out",
      "type": "number"
    },
    "samples": {
      "description": "Samples per pixel, 1 to 4096 (64)",
      "type": "integer"
    },
    "seed": {
      "description": "Changes the noise pattern (0)",
      "type": "integer"
    },
    "volumeBounces": {
      "description": "How often light may scatter in a volume before the path ends (0: each point in a volume is lit directly only)",
      "type": "integer"
    },
    "wait": {
      "description": "Render to the end and answer the image at once (false)",
      "type": "boolean"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.