Logo vun Td Pops

Td Pops

Communautéit
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.

Iwwersiicht

Editeurrheadsh
Repositoryaudiovisual-production-skills
Skill-Nummtd-pops
Stären
45
Forks
2
Matgeliwwert Fichieren
9
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 9 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum rheadsh op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Td Pops an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/rheadsh/audiovisual-production-skills/tree/main/td-pops
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Td Pops an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Td Pops automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Td Pops net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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/vertic...

Firwat Td Pops op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Td Pops besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Td Pops an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/rheadsh/audiovisual-production-skills/tree/main/td-pops an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Td Pops benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Td Pops benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Td Pops domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Td Pops gratis?

Jo. De Skill gëtt vum rheadsh ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇