Create RayTK scene
create_raytk_sceneBuild a minimal RayTK raymarch scene by selecting an SDF primitive and optional union, material, camera, and light. Requires RayTK toolkit staged and loaded.
Instructions
Build the minimal renderable RayTK node graph (sphereSdf → raymarchRender3D → Null TOP) from RayTK's real ROP COMP masters, copied at runtime — the node-graph-native complement to create_raymarch_scene (which stays the lightweight, no-dependency GLSL path). Optional flags union a second SDF, insert an inline basicMat, and add an explicit lookAtCamera / pointLight. Requires the RayTK toolkit staged + loaded (manage_packages install raytk, then load the .tox); RayTK 0.46 requires TouchDesigner 2025.30770+. Fails forward with 'stage & load RayTK first' guidance when the library is absent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the container COMP created for the scene. Defaults to 'raytk_scene_<sdf_primitive>'. | |
| material | No | Insert a RayTK basicMat (material category) inline between the SDF/union chain and the renderer, so the surface gets a base color/shading instead of the renderer default. | |
| add_light | No | Add a RayTK pointLight (light category) wired into the renderer's Light input (connector index 2, 0-based). Default false uses the renderer's built-in light — leave false for the minimal scene. | |
| add_camera | No | Add a RayTK lookAtCamera (camera category) wired into the renderer's Camera input (connector index 1, 0-based). Default false uses the renderer's built-in camera — leave false for the minimal scene. | |
| union_with | No | Optional second SDF primitive to combine with sdf_primitive via a RayTK simpleUnion (combine category). Omit for a single primitive. Example: sdf_primitive=sphereSdf + union_with=boxSdf yields a merged blob. | |
| parent_path | No | Parent COMP path the RayTK scene container is created inside. | /project1 |
| sdf_primitive | No | Primary RayTK SDF primitive ROP to raymarch. One of sphereSdf, boxSdf, boxFrameSdf, torusSdf. These are RayTK 'sdf'-category COMP masters copied from the loaded library — not native TouchDesigner operators. | sphereSdf |