Introduction to GLSL in TouchDesigner - 2019-11-01 08:32

Introduction to GLSL in TouchDesigner

Link to main site

Hello Vincent!

Thank you for uploading this tutorial and the .toe file.

I have tried to create the bendDeform Instance following your tutorial but I got stuck when I had to create the instances of the tube.
I have noticed that something similar happens also in the .toe file that you have uploaded.
The tube in fact does not instance, following the location of the points of the grid.
However the instance is perfect in your tutorial video (and looks so easy to do! :slight_smile: )

Why does this happen? How is it possible to solve the problem?

Thank you!

Hello!

I just double checked the sample toe, looks as it should in the bendDeformerInstances Base, see attached screenshot, not sure which issue you’re having?

Vincent

Hello Vincent!
Thanks for your reply.
I attach a screenshot of what I get when I open the toe file and get into the bendDeformerInstances Container. Do you know why does this problem happen to me?

That’s odd, I just tried with the experimental version of TD but it’s also working for me, and it should be working fine on a mac too, if that’s what you’re using (some folks were using a mac during the workshop).

It seems the instance translation parameters from the geo are not working, but the bend that comes from the samplerbuffer read in the shader is fine.

Does instancing with the standard phong/pbr work for you?

First time I see the issue or someone mentions it to me, so that’s probably a question for Derivative.
There might be an issue with your hardware/drivers or something, would be curious if you can try it on another computer…

I’m running the experimental version on a PC using windows 10.

When I apply the standard phong I get the instancing of the tube, but of course no deforms and rotations are applied.

Unfortunately I can’t try it on other computers.
Maybe someone here in the forum could check this out?

Hi,

your tutorial is so good for me, thanks!
but i have one thing to ask .

i downloaded the sample file but there is no dynamic particles that you showed last at the end of final chapter.
and i want fluid2d if i can get.

Thanks,

Hey, it’s definitely in there, it’s in the particle_life base.

Hi Vincent. I am on the Shadertoy Conversion Part 5 video and even though my code is exactly like the tutorial, I keep running into this error with both of the shaders used in the example that is preventing the code from working. What is wrong and how do I fix it? Thank you so much!

Hey, can you paste the full .toe file so we can see the rest of the shader? Everything in view looks ok offhand.

you are missing the {} for the for-loop

for(x,x,x) {
do something
}

You can have a loop without {} braces, it can just only be one line like this in that case.

@KellyFin I replied on youtube too, does the provided file work for you or does it error too? The error looks strange. Are you on a mac? I remember seeing weird compilations errors for people with macs, if a shader was at the root of TD and not inside a container, and other weird mac specific errors.