Create RayTK SDF graph
create_raytk_sdf_graphBuilds a TouchDesigner RayTK SDF graph from primitives, combining up to two SDFs with simpleUnion and wiring camera, light, material, and renderer to a Null TOP.
Instructions
Build a RayTK SDF graph from copied RayTK ROP masters: primary SDF, optional secondary SDF through simpleUnion, optional basicMat, lookAtCamera, pointLight, raymarchRender3D, and a native Null TOP output. Requires RayTK to be staged with manage_packages install raytk and loaded from the staged .tox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the container COMP created for the graph. | raytk_sdf_graph |
| light | No | Add a RayTK pointLight wired to renderer input 2. | |
| camera | No | Add a RayTK lookAtCamera wired to renderer input 1. | |
| primary | No | Primary RayTK SDF primitive ROP copied from the loaded RayTK library. | sphereSdf |
| material | No | Insert a RayTK basicMat between the SDF chain and renderer. | |
| operation | No | Combination operation. A provided secondary upgrades none to simpleUnion. | none |
| secondary | No | Optional second RayTK SDF primitive, combined with primary by simpleUnion. | |
| output_name | No | Name of the native Null TOP receiving the renderer output. | out1 |
| parent_path | No | Parent COMP path where the RayTK SDF graph container is created. | /project1 |
| render_resolution | No | RayTK renderer resolution [width, height]. Defaults to 1280x720 to avoid TouchDesigner Non-Commercial render-size warnings. |