Create PBR scene
create_pbr_sceneConstruct a complete physically-based 3D scene with PBR shading, environment lighting, and camera. Exposes controls for metallic, roughness, base color, and spin to adjust reflections.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | No | Geometry to render with the PBR material. | sphere |
| metallic | No | PBR metalness: 0 = dielectric (plastic/clay), 1 = metal. Bound to the Metallic knob. | |
| 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. | |
| 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. | |
| rotate | No | Continuous spin of the whole object around Y in degrees/sec (0 = still). Shows off the PBR reflections as the surface turns. | |
| expose_controls | No | When true (default), expose live Metallic, Roughness, BaseColor and Spin controls. | |
| parent_path | No | Parent network where the PBR-scene container is created (default '/project1'). | /project1 |