Hi
I’m a newbie about GLSL and Shader.
I followed the tutorial of Lake Heckaman about the autonomous agents → https://alltd.org/touchdesigner-dynamic-particle-system-with-attractors-part-1-autonomous-agents/
Here’s the .toe I’m working on
GLSL.26.toe (9.7 KB)
Btw I modified a little bit the network:
- I tried to build a 3D version with respect the linked tutorial
- in /project1/AUTONOMOUS_AGENTS/sim GLSL Multi Top I tried to add in the vectors section the coefficient uNumSpecies (in the GLSL Pixel Shader): I would like to create different behaviours between species, but it’s not the main topic of this post
- in the related /project1/AUTONOMOUS_AGENTS/glslmulti1_pixel you can find the code related to the shader
The thing that I would like to do is very easy I think.
Since I’m defining different species using the value uNumSpecies in the Multi GLSL TOP ‘sim’, I would like to render them with different colors in the final Geometry ‘boids’.
How can I do it?
Should I have to use a GLSL Material to apply to Geometry ‘boids’? How?
Thank you!
Let me know if you need more pieces of information!