Scene kit command

render.trace.step

Continue Path Trace

Continues the path-traced render for `budgetMs` and answers its progress, with the picture so far when `preview`.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of render.trace.step
NameTypeRequiredDescription
budgetMsnumbernoAbout how long to render, in milliseconds (50)
previewbooleannoAnswer the picture so far as a PNG (false)

Call through scene_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: budgetMs, preview. scene_run answers the step’s result in completed[i].result.

Result

Result of render.trace.step
NameTypeRequiredDescription
base64stringno
donebooleanno
fractionnumberno
heightintegerno
samplesintegerno
targetintegerno
widthintegerno
Result JSON Schema
json
{
  "additionalProperties": true,
  "description": "the render's progress, with the picture so far as base64 PNG when asked",
  "properties": {
    "base64": {
      "type": "string"
    },
    "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": {
    "budgetMs": {
      "description": "About how long to render, in milliseconds (50)",
      "type": "number"
    },
    "preview": {
      "description": "Answer the picture so far as a PNG (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.