This tutorial introduces TOPs (Texture Operators) in TouchDesigner. In computer graphics, the term “texture” refers to a 2D image asset, so TOPs are essentially how we work with images and video in TouchDesigner.

Getting Started with TOPs

Adding Operators

To begin working with TOPs:

  1. Press the Tab key to open the OP Create dialog
  2. Add operators like Movie File In, Circle TOP, and Composite TOP to your network

Loading Images

To change the image in a Movie File In operator:

  • Click the plus icon in the parameters panel
  • This opens a file selection dialog where you can choose your image

Connecting Operators

You can connect operators in two ways:

  • Connect them one at a time
  • Box select multiple operators by right-clicking and holding, then connect them simultaneously to another operator

Understanding Resolution and Aspect Ratio

Checking Operator Info

When compositing images, resolution mismatches can cause unexpected results. To check an operator’s resolution:

  • Click on the operator
  • Go to the parameters dialog and click the Info button
  • Alternatively, use middle mouse button click and hold for quick info popup

Fixed Layer Parameter

The Fixed Layer parameter on the Transform page of the Composite TOP determines which input defines the resolution and aspect ratio of the output:

  • By default, it may use a smaller resolution (e.g., 256x256 from a Circle TOP)
  • Change it to Input 1 to use the resolution of your main image

Prefit Overlay Options

The Prefit Overlay parameter controls how images are combined:

  • Fill: Stretches the other input to fill the fixed layer
  • Fit options: Various fitting modes to match your desired look
  • Native Resolution: Preserves exact pixel dimensions from both inputs

Working with the Circle TOP

Setting Resolution

On the Common page of the Circle TOP, you can set custom resolution:

  • Example: 1024 x 1024 for higher quality circles

Adjusting Size

To change the circle radius:

  • Enter values directly (e.g., 0.3 by 0.3)
  • Use the Value Ladder: Middle mouse click and hold to drag-select the increment (thousands, tenths, or whole units)
  • Middle mouse click on the parameter name to change both X and Y values simultaneously

Transform TOP and Channel Masks

Transform Operations

The Transform TOP allows various image transformations:

  • Rotation (spinning)
  • Translation (moving left/right, up/down)

Channel Mask Feature

The Channel Mask on the Common page is a powerful feature for selective transformations:

  • By default, transformations apply to all channels: Red, Green, Blue, and Alpha
  • You can disable specific channels to exclude them from the transformation
  • Example: Disable Red channel, and only Green, Blue, and Alpha will be transformed

This creates interesting visual effects where different color channels are offset from each other, useful for:

  • Chromatic aberration effects
  • RGB split effects
  • Channel-specific processing

Key Takeaways

  1. TOPs are Texture Operators - They handle all 2D image and video processing in TouchDesigner
  2. Resolution matters - Always check the Fixed Layer setting when compositing to ensure correct output resolution
  3. Value Ladder - Middle mouse button provides quick value adjustment with selectable precision
  4. Channel Masks - Enable selective processing of individual color channels for creative effects
  5. Info popup - Middle mouse click and hold on any operator for quick resolution and aspect ratio info

This tutorial covers just the basics of TOPs, but provides a solid foundation for working with images and video in TouchDesigner.

本教程介绍TouchDesigner中的TOPs(纹理操作符)。在计算机图形学中,“纹理”一词指的是2D图像资源,因此TOPs本质上是我们在TouchDesigner中处理图像和视频的方式。

TOPs入门

添加操作符

开始使用TOPs:

  1. Tab键打开OP创建对话框
  2. 向网络中添加操作符,如Movie File InCircle TOPComposite TOP

加载图像

要更改Movie File In操作符中的图像:

  • 点击参数面板中的加号图标
  • 这将打开文件选择对话框,您可以选择图像

连接操作符

您可以通过两种方式连接操作符:

  • 逐个连接
  • 通过右键单击并按住进行框选多个操作符,然后同时将它们连接到另一个操作符

理解分辨率和宽高比

检查操作符信息

合成图像时,分辨率不匹配可能导致意外结果。要检查操作符的分辨率:

  • 点击操作符
  • 进入参数对话框并点击信息按钮
  • 或者,使用鼠标中键点击并按住快速查看信息弹窗

固定图层参数

Composite TOP变换页面上的**Fixed Layer(固定图层)**参数决定哪个输入定义输出的分辨率和宽高比:

  • 默认情况下,它可能使用较小的分辨率(例如,来自Circle TOP的256x256)
  • 将其更改为Input 1以使用主图像的分辨率

预适配叠加选项

**Prefit Overlay(预适配叠加)**参数控制图像的组合方式:

  • Fill(填充):拉伸其他输入以填充固定图层
  • Fit选项:各种适配模式以匹配您想要的效果
  • Native Resolution(原生分辨率):保留两个输入的精确像素尺寸

使用Circle TOP

设置分辨率

在Circle TOP的Common(通用)页面,您可以设置自定义分辨率:

  • 例如:1024 x 1024以获得更高质量的圆形

调整大小

要更改圆的半径:

  • 直接输入值(例如,0.3 x 0.3)
  • 使用Value Ladder(数值阶梯):鼠标中键点击并按住以拖动选择增量(千分位、十分位或整数)
  • 鼠标中键点击参数名称可同时更改X和Y值

Transform TOP和通道遮罩

变换操作

Transform TOP允许各种图像变换:

  • 旋转(转动)
  • 平移(左右、上下移动)

通道遮罩功能

Common页面上的**Channel Mask(通道遮罩)**是用于选择性变换的强大功能:

  • 默认情况下,变换应用于所有通道:红色、绿色、蓝色和Alpha
  • 您可以禁用特定通道以将其排除在变换之外
  • 例如:禁用红色通道,则只有绿色、蓝色和Alpha会被变换

这会创建有趣的视觉效果,其中不同的颜色通道相互偏移,适用于:

  • 色差效果
  • RGB分离效果
  • 特定通道处理

关键要点

  1. TOPs是纹理操作符 - 它们处理TouchDesigner中所有的2D图像和视频处理
  2. 分辨率很重要 - 合成时始终检查Fixed Layer设置以确保正确的输出分辨率
  3. 数值阶梯 - 鼠标中键提供可选精度的快速数值调整
  4. 通道遮罩 - 启用对单个颜色通道的选择性处理以实现创意效果
  5. 信息弹窗 - 在任何操作符上鼠标中键点击并按住可快速查看分辨率和宽高比信息

本教程仅涵盖TOPs的基础知识,但为在TouchDesigner中处理图像和视频提供了坚实的基础。