Mastering GLSL in TouchDesigner, Lesson 11: Convolution Kernels
In this lesson of Mastering GLSL in TouchDesigner, we explore convolution kernels, a powerful technique for image filtering that allows for effects like sharpening, edge detection, embossing, and Gaussian blur. Youβll learn how convolution matrices modify pixel neighborhoods and how to implement multi-pass filtering for dynamic effects.
π Key Topics Covered:
β
Understanding convolution kernels and how they alter images
β
Implementing sharpening, edge detection, and motion blur
β
Using mipmaps and textureLod() for efficient sampling
β
Applying multiple shader passes for more complex effects
π¨ Exercises & Challenges:
π οΈ Implement a custom convolution kernel from scratch
π οΈ Build a CRT effect with vignette, scanlines, and chromatic aberration
π οΈ Create a unique effect by combining multiple filtering techniques
Explanation of kernels with some good illustrations: https://medium.com/@timothy_terati/image-convolution-filtering-a54dce7c786b
Interactive convolution kernel explorer: https://setosa.io/ev/image-kernels/
Find me online:
πΉ Project Files & Patreon: https://www.patreon.com/water__shed
πΉ Portfolio: https://www.lakeheckaman.com
πΉ Instagram: https://instagram.com/lake_heckaman
00:00 β Start
00:04 β Intro: Advanced Image Filters with GLSL
01:08 β Image Convolution Kernel
09:49 β Implementing kernels in GLSL
12:11 β Mipmaps
16:39 β Convolve TOP
17:56 β Begin TouchDesigner Examples
19:08 β TextureLOD
22:36 β Edge Detection (Sobel Filter) in GLSL
27:33 β Sharpen Filter
31:30 β Emboss
32:34 β Barrel Blur GLSL TouchDesigner
34:24 β Exercises