Create PBR scene
create_pbr_sceneBuild a physically-based 3D scene in TouchDesigner: sets up PBR material, environment light, key light, camera, and render. Exposes live metallic, roughness, base color, and spin controls.
Instructions
Build a physically-based 3D scene: a Geometry COMP holding the chosen primitive (sphere/torus/box) shaded by a PBR MAT (base colour, metallic, roughness), lit by an Environment Light for image-based lighting (fed a Constant TOP of env_color so it works with no HDRI file) plus a key Light, framed by a Camera and rendered to a Null. Creates a new baseCOMP under parent_path holding the Environment Light + envmap Constant TOP, the PBR MAT, a Geometry COMP, a key Light, a Camera, a Render TOP, and a Null output. Use create_3d_scene instead for basic (non-PBR) shading or GPU instancing. Exposes Metallic, Roughness, BaseColor and Spin controls; set rotate to turn the object so its reflections move. Returns a summary plus a JSON block with the container path, created node paths, the material/lights/geometry/camera/render/output paths, 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_pbr_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | No | Geometry to render with the PBR material. | sphere |
| rotate | No | Continuous spin of the whole object around Y in degrees/sec (0 = still). Shows off the PBR reflections as the surface turns. | |
| metallic | No | PBR metalness: 0 = dielectric (plastic/clay), 1 = metal. Bound to the Metallic knob. | |
| env_color | No | Colour of the environment light used for image-based lighting, as [r,g,b] in 0..1 (soft white). With no HDRI this drives a Constant TOP fed into the Environment Light. | |
| roughness | No | PBR roughness: 0 = mirror-sharp reflections, 1 = fully diffuse/matte. Bound to the Roughness knob. | |
| base_color | No | PBR base/albedo colour as [r,g,b] in 0..1 (light gray by default). Also seeds the BaseColor swatch. | |
| parent_path | No | Parent network where the PBR-scene container is created (default '/project1'). | /project1 |
| expose_controls | No | When true (default), expose live Metallic, Roughness, BaseColor and Spin controls. |