Td Pops logo

Td Pops

Community
rheadsh
td-pops

Write GLSL compute shaders for TouchDesigner's POP (Point Operator) family — GLSL POP, GLSL Advanced POP, GLSL Copy POP, and GLSL Select POP. Use this skill whenever the user wants to create particle systems, point cloud manipulation, geometry processing, GPU-driven point simulations, instancing with GLSL, or any compute-shader work inside TouchDesigner's POP context. Trigger on mentions of GLSL POP, particle shader, point operator, compute shader for particles, point cloud GLSL, POP attributes, SSBO particle data, GLSL Copy POP, GLSL Advanced POP, or any request to manipulate points/vertices/primitives with GLSL in TouchDesigner.

Overview

Publisherrheadsh
Repositoryaudiovisual-production-skills
Skill nametd-pops
Stars
45
Forks
2
Bundled files
9
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 9 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by rheadsh on GitHub. Read the source before you install it.

Installation

Install the Td Pops AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/rheadsh/audiovisual-production-skills/tree/main/td-pops
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rheadsh/audiovisual-production-skills.git /tmp/audiovisual-production-skills
mkdir -p .claude/skills
cp -r /tmp/audiovisual-production-skills/td-pops .claude/skills/td-pops
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Td Pops in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Td Pops on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Td Pops is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

TouchDesigner GLSL POPs — Compute Shader Writing

Write GLSL compute shaders for TouchDesigner's GPU-accelerated Point Operators (POPs).

GLSL POPs are fundamentally different from GLSL TOPs. TOPs are pixel/fragment shaders that output images; POPs are compute shaders that read and write particle/point attributes stored in SSBOs (Shader Storage Buffer Objects). There is no fragColor, no vUV, no sTD2DInputs — instead you work with attribute arrays like P[], v[], Cd[] indexed by TDIndex().

Quick Start

Every GLSL POP compute shader needs:

glsl
void main() {
    // 1. Get thread index and bounds-check
    const uint id = TDIndex();
    if (id >= TDNumElements())
        return;

    // 2. Read input attributes
    vec3 pos = TDIn_P();           // shorthand for TDIn_P(0, id, 0)

    // 3. Modify attributes
    pos.y += 0.01;

    // 4. Write to output attribute arrays
    P[id] = pos;
}

Critical Rules

  1. No fragment-shader constructs — there is no out vec4 fragColor, no vUV, no sTD2DInputs, no TDOutputSwizzle(). Those belong to GLSL TOPs/MATs, not POPs.
  2. Always bounds-check: if (id >= TDNumElements()) return; prevents out-of-bounds writes.
  3. Output attributes are arrays declared as attribType AttribName[]; — write with AttribName[id] = value;
  4. Input attributes are functions: TDIn_AttribName() for GLSL POP, TDInPoint_AttribName() / TDInPrim_AttribName() / TDInVert_AttribName() for GLSL Advanced POP.
  5. Initialize outputs: Uninitialized output attributes cause crashes. Either enable "Initialize Output Attributes" in the operator parameters, or explicitly write every output element.
  6. Uniforms workflow: Same as GLSL TOPs — declare in shader, configure on the operator's parameter pages (Vectors, Colors, Samplers, etc.).

Choosing the Right POP Operator

OperatorUse WhenKey Trait
GLSL POPModifying one attribute class (points OR verts OR prims) without changing element countSimplest, single-class processing
GLSL Advanced POPReading/writing points, verts, AND prims simultaneously, or changing element countsMost powerful, simultaneous multi-class access
GLSL Copy POPInstancing — duplicating geometry with per-copy transformsSeparate shaders for points/verts/prims per copy
GLSL Select POPPicking an extra output stream from a GLSL Advanced POPUtility, no shader code needed

Input / Output Attribute Access

GLSL POP (single attribute class)

glsl
// Reading input (shorthand defaults: inputIndex=0, elementId=TDIndex(), arrayIndex=0)
vec3 pos = TDIn_P();
vec4 col = TDIn_Cd();
vec3 vel = TDIn_v();

// With explicit parameters
vec3 pos2 = TDIn_P(1, id, 0);   // input 1, element id, array index 0

// Writing output (arrays — must be declared in Output Attributes parameter)
P[id] = pos;
Cd[id] = col;
v[id] = vel;

GLSL Advanced POP (all classes simultaneously)

glsl
// Reading — class-prefixed functions
vec3 pos  = TDInPoint_P();
vec3 nrm  = TDInVert_N();
int  ptype = TDInPrim_primtype();

// Writing — class-prefixed arrays
oTDPoint_P[id] = pos;
oTDVert_N[id]  = nrm;

GLSL Copy POP

glsl
// Same TDIn_ pattern, plus copy-specific functions
uint copyIdx  = TDCopyIndex();
uint inputPt  = TDInputPointIndex();   // matching input point for this thread

P[id] = TDIn_P() + float(copyIdx) * vec3(1.0, 0.0, 0.0);
TDUpdatePointGroups();   // preserve point group membership

Common Patterns

See examples/PATTERNS.md for ready-to-use templates:

  • Position offset / animation
  • Velocity-driven motion
  • Noise-based displacement
  • Attraction / repulsion forces
  • Age-based color and fade
  • Instancing with GLSL Copy POP

TouchDesigner Helper Functions

glsl
// Indexing
uint TDIndex();              // 1D thread index
uint TDNumElements();        // total requested threads

// Element counts
uint TDInputNumPoints(uint inputIndex);
uint TDInputNumPrims(uint inputIndex);
uint TDInputNumVerts(uint inputIndex);

// Math helpers
mat3 TDRotateOnAxis(float radians, vec3 axis);
mat3 TDRotateX(float radians);
mat3 TDRotateY(float radians);
mat3 TDRotateZ(float radians);
mat3 TDCreateRotMatrix(vec3 from, vec3 to);

// Noise
float TDSimplexNoise(vec2/vec3/vec4 v);
float TDPerlinNoise(vec2/vec3/vec4 v);

// Color
vec3 TDHSVToRGB(vec3 hsv);
vec3 TDRGBToHSV(vec3 rgb);

// Remapping
float TDRemap(float val, float oldMin, float oldMax, float newMin, float newMax);
float TDLoop(float val, float low, float high);
float TDZigZag(float val, float low, float high);

Response Format

When providing GLSL POP shaders, always include:

  1. Which POP operator to use (GLSL POP, GLSL Advanced POP, or GLSL Copy POP)
  2. GLSL Code with comments explaining each section
  3. Output Attributes — which attributes the user must list in the "Output Attributes" parameter (e.g., P v Cd)
  4. Attribute Class — Point, Vertex, or Primitive (for GLSL POP)
  5. TouchDesigner Setup instructions:
    • Uniform names, types, and values on the Vectors / Colors / Samplers pages
    • Whether to enable "Initialize Output Attributes"
    • Number of passes (if multi-pass)
    • Any additional inputs or operator wiring

Common Errors

See reference/TROUBLESHOOTING.md for solutions to:

  • Reading uninitialized output attributes (crashes)
  • Missing bounds check causing GPU hangs
  • Using fragment-shader syntax in a compute shader
  • Attributes not appearing in output
  • Performance issues with large point counts

Additional Resources

Writing Process

  1. Identify the right POP operator for the task
  2. Start with a template from templates/
  3. Declare uniforms and configure on TD parameter pages
  4. List all output attributes in the operator's "Output Attributes" field
  5. Implement shader logic with proper bounds checking
  6. Enable "Initialize Output Attributes" if not writing every attribute
  7. Test incrementally — start with position only, then add velocity, color, etc.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Td Pops AI skill do?

Write GLSL compute shaders for TouchDesigner's POP (Point Operator) family — GLSL POP, GLSL Advanced POP, GLSL Copy POP, and GLSL Select POP. Use this skill whenever the user wants to create particle systems, point cloud manipulation, geometry processing, GPU-driven point simulations, instancing with GLSL, or any compute-shader work inside TouchDesigner's POP context. Trigger on mentions of GLSL POP, particle shader, point operator, compute shader for particles, point cloud GLSL, POP attributes, SSBO particle data, GLSL Copy POP, GLSL Advanced POP, or any request to manipulate points/vertic...

Why use Td Pops on TypingMind?

Because you install it once and use it with any model. Td Pops is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Td Pops in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/rheadsh/audiovisual-production-skills/tree/main/td-pops. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Td Pops?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Td Pops?

As many as you like. As long as a model supports skills, you can use Td Pops with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Td Pops AI skill free?

Yes. It is published on GitHub by rheadsh under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇