Pathtracer¶
Summary¶
The Pathtracer renders the scene. It takes the PT GEOs (Geometry) and PT LIGHTs (Lights) beside it, renders them through a Camera COMP (Camera), lights them with the lights, glowing materials, the environment and the haze, and removes the noise with DLSS or by accumulating frames (Method on the Denoise page).
Place it in the same network as your scene and connect a TOP to its output. Name the panel you show the image in as its Panel: the render then takes the panel's size, and a right-click in it opens the material under the cursor. The first scene walks through it.
The Scene page sets up the image: what is rendered, the size, how many light paths and bounces, the exposure and the lens. The World page holds the environment and the haze, the Denoise page the denoiser, and the Output page what each output shows: the image, or views of what each surface is made of. Optimize on the Scene page keeps the render at full speed; see Speed and Optimize.
Outputs¶
- Output 0: Shaded - What the first Outputs block shows: at first the rendered image, denoised with the chosen Method. Its size is Resolution, or the size of the Panel while Panel Resolution is on. Each block added to Outputs on the Output page adds an output after this one, up to eight, showing the image or a view such as depth or normals.
Scene page¶
Camera Camera - The Camera COMP to render through: its position, orientation and field of view. cam1 by default. When it names no camera, the first camera beside the Pathtracer is used; without one, a default view looks down the Z axis from 5 units back.
Geometry Geometry - The geometry to render, by name or pattern, looked up beside the Pathtracer: PT GEOs, PT T3Ds (see Smoke, fire and surfaces), and TouchDesigner's Geometry COMPs, glTF In and FBX COMPs and POPs, as a Render TOP draws them (see TouchDesigner's geometry). The default * takes all of them. What has its Render flag off is left out, so objects can be switched on and off without rewiring.
Lights Lights - The lights of the scene, by name or pattern, looked up beside the Pathtracer: PT LIGHTs and TouchDesigner's Light COMPs (see TouchDesigner's lights). * takes all of them.
Render Mode Rendermode - How the camera sees the scene. 2D renders through the camera as it is set up. Fish-Eye renders everything within Fish-Eye Angle around where the camera points into a circle, as domes take it; the image is best square. Equirectangular renders all around the camera, with where it points in the centre and right behind it at the left and right edges, as 360 video takes it; the image is best twice as wide as high. Cube Map renders the same view all around and outputs it as a cube map, with where the camera points on its -Z face, ready for an Environment Light COMP or a Projection TOP. Its faces are a quarter of Resolution's width, so set Resolution to four faces by two.
Fish-Eye Angle Fisheyeangle - Field of view across the Fish-Eye circle, in degrees. 180 sees the half of the world in front of the camera.
Lock Input Lockinput - Freezes the scene as it is: changes to the geometry and to the PT T3Ds' textures no longer reach the render until you turn it off again. Use it for heavy scenes that don't move, or to keep the image while you edit. Saving the project takes the scene as it is then and starts the image over; the frozen copy is not saved with the project.
Reset Reset - Starts the image over.
Optimize Optimize - Prepares the fastest trace for the current settings. TouchDesigner pauses for about ten seconds while it compiles, or not at all for settings this Pathtracer was optimized for before; the status bar says when a pause is coming and how long it took. Until you press it again, changing a setting the trace was prepared for (an environment map, the first points or lines, haze and its variation, texture or multiple scattering, a new kind of light, dispersion, DLSS) switches at once to a flexible trace that handles any settings but runs a little slower. A new Pathtracer, a copy or a renamed one starts on the flexible trace. Glass Shadows is the exception: switching it compiles even the flexible trace. See Optimize.
Optimized Optimized - On while the trace prepared for the current settings runs; off while the flexible trace stands in. Press Optimize to turn it on again.
Resolution Resolutionw Resolutionh - The size of the image in pixels, used when Panel Resolution is off or no Panel is set. With DLSS this is the size of the output; the image may be traced smaller and upscaled, as set by DLSS Quality.
Panel Panel - The panel you show the image in, the project's own by default; for example a Container COMP whose Background TOP is the Pathtracer's output. With Panel Resolution its size sets the render size. Right-click a surface in it (without dragging) to open the parameters of its material; Ctrl+right-click opens its PT GEO or PT LIGHT.
Panel Resolution Panelresolution - Renders at the size of the Panel instead of Resolution.
Samples per Frame Samples - How many light paths are traced per pixel in each frame. More give a cleaner image each frame and cost more time.
Bounces Bounces - How many times a light path may scatter. More bounces brighten indirectly lit areas and let light through stacked glass and between facing mirrors, at more cost. Raise it when glass or mirrors turn dark.
Firefly Clamp Fireflyclamp - Limits very bright indirect light, which removes stray bright pixels (fireflies) at the cost of a little brightness. 0 turns it off.
Glass Shadows Glassshadows - Lets the light of PT LIGHTs through clear glass into the shadow behind it, bent and focused as the glass bends it: the bright patterns under a glass of water, a lens or a glass ball. Without it, glass under a small light or a sharp sun casts a dark, grainy shadow. It applies to smooth glass (Transmission on, little Roughness, no Dispersion or Normal Map) and costs time only while the scene has glass. The first time you switch it, the Pathtracer compiles, which pauses TouchDesigner as Optimize does. See Glass and liquids.
Exposure Exposure - Brightens or darkens the image, in stops: +1 doubles the brightness, −1 halves it.
Aperture Aperture - The size of the lens, for depth of field: the larger it is, the more blurred everything away from Focus Distance becomes. 0 keeps everything sharp.
Focus Distance Focusdistance - The distance from the camera that is in focus, when Aperture is above 0.
World page¶
Environment Envmap - An equirectangular (latitude-longitude) HDRI image that surrounds the scene and lights it from all around.
Environment Color Envcolorr Envcolorg Envcolorb - An even light from all around, used when there is no Environment image. Black, the default, gives none: then only PT LIGHTs and glowing materials light the scene.
Strength Envstrength - The brightness of the environment, image or colour.
Rotate Envrotate - Turns the environment image around the vertical axis, in degrees.
Visible to Camera Envvisible - Shows the environment as the background. Off, the background is black and the environment still lights the scene.
Haze Density Hazedensity - Fills the air with haze that catches light, so that beams from lights become visible. Higher is thicker. 0 turns the haze off.
Haze Color Hazecolorr Hazecolorg Hazecolorb - The colour of the light the haze scatters.
Anisotropy Hazeanisotropy - How the haze scatters light. Positive values scatter it forward, so beams glow brightest when you look towards the light; 0 scatters evenly in all directions; negative values scatter it back.
Haze Samples Hazesamples - How many points along each view ray the haze is lit at. More give cleaner beams, at more cost.
Haze Box Hazebox - An object that holds the haze: the haze fills a 1 × 1 × 1 cube centred on it, the size of a Box POP at its defaults, moved, turned and scaled with the object. Empty fits the haze around the scene's geometry, its lights and the camera.
Haze Texture Hazetexture - A 3D texture that gives the haze a shape of its own, such as a cloud, a plume or smoke from a simulation: a 3D TOP or a T3D operator. It fills the Haze Box, or without one the space the haze fills, and its value multiplies Haze Density. Variation still applies on top.
Texture Channel Hazechannel - Which channel of the Haze Texture is read as the density.
- Red
- Green
- Blue
- Alpha
- Luminance - The brightness of the colour.
Variation Hazevariation - Breaks the haze up with noise, from 0 (even) to 1 (patchy).
Variation Scale Hazescale - The size of the noise patches.
Drift Hazedriftx Hazedrifty Hazedriftz - How far the noise has moved, in units along X, Y and Z, like smoke carried by a draught. Animate it to make the haze drift: me.time.seconds in Drift X moves it one unit a second along X.
Multiple Scattering Hazemultiple - Lets light scatter more than once inside the haze: thick fog with a softer, brighter glow. Slower.
Denoise page¶
Method Method - How the noisy traced image is turned into a clean one. See Denoising.
- DLSS - Cleans every frame and follows movement: for animation and interaction. Needs an NVIDIA RTX GPU.
- Accumulate - Averages the frames while nothing changes: an exact, clean image of a still scene, for stills and reference renders. Any change starts the average over.
DLSS Quality Quality - How much smaller than Resolution DLSS traces the image before upscaling it. Smaller is faster and softer.
- DLAA - Full size, the sharpest image.
- Quality - Two thirds of the width and height.
- Balanced - A little under 60 % of the width and height.
- Performance - Half the width and height.
- Ultra Performance - A third of the width and height, the fastest.
DLSS Model Preset - The model DLSS denoises with. It applies to the whole image, so pick it per shot. See Smoke under DLSS.
- Default - The newest model, F. Use it unless fast-moving smoke needs D.
- D - Keeps dense smoke brighter while it moves fast, but flickers more at rest.
- E - Another of NVIDIA's models, to compare.
- F - The newest model, the same as Default.
DLSS Plugin Plugin - The DLSS plugin, DlssTOP.dll. By default Documents\Derivative\Pathtracing\DlssTOP.dll, the Pathtracing folder beside your palette folder, where the installation puts it. Type another path to use a copy elsewhere. A TouchDesigner session keeps the first plugin it loads, so every Pathtracer in it uses that copy until TouchDesigner restarts.
Stable Planes Stableplanes - Guides DLSS with what is seen through glass and in mirrors, so those stay sharp.
Refraction Motion Refractionmotion - Lets DLSS follow what is seen through glass as it moves, so it does not smear when the camera moves. Works with Stable Planes.
Responsivity Responsivity - Positive values make DLSS react faster to change; negative values make the image flicker less. 0 is DLSS's own balance.
Transmission Responsivity Transmissionresponsivity - Added to Responsivity on glass and other surfaces with Transmission, which often need their own balance.
Max Samples Maxsamples - Stops refining the image once each pixel has this many samples, while nothing changes. 0 never stops. DLSS keeps tracing and ignores it.
Samples Samplecount - How many samples per pixel the image has averaged so far.
Optimized For Optimizedfor - The settings Optimize last prepared the trace for, as a row of numbers. While the current settings differ, Optimized is off. A copy or a renamed Pathtracer starts with it empty.
Output page¶
Outputs Outputs - One output of the Pathtracer per block: the first block is the first output, the next the second, up to eight. A new Pathtracer has one block, Shaded. Add blocks with + and remove them with -. See The outputs.
Output Outputs0show - What this output shows: Shaded is the rendered image; the others show what the first surface seen in each pixel is made of, at the output size, which helps to find why something looks wrong. The first view you add compiles a shader of its own, which takes a while once.
- Shaded - The rendered image.
- Albedo - The colour of each surface, without light.
- Normal - The direction each surface faces.
- Depth - The distance from the camera, in scene units.
- Motion - How each pixel moves on screen; grey where nothing moves. Red and green are 0.5 plus the way back to where the pixel was the frame before, across and up, in pixels divided by 32.
- Roughness - The roughness of each surface, from black (mirror) to white (fully rough).
- Material - Each material in a colour of its own.
- Emission - The light each surface gives off.
sRGB Srgb - Encodes the Shaded image in sRGB for the screen, the way Blender's Standard view shows it. On by default. Turn it off when the image goes on to compositing that expects linear light: it is then linear, as renderers compute light, and looks darker and harsher shown as it is. The other outputs stay linear either way.
Dither Dither - Adds a faint noise to the Shaded image so smooth gradients, such as a sky or a soft shadow, do not show bands on screen or in an 8-bit file. Black stays black. On by default; turn it off when the image goes on to processing that needs the exact values. The other outputs are not dithered.
About page¶
Help Help - Opens the page about the Pathtracer on pathtracer.josefpelz.com.