Forum

Is there a 'Print' like function in effect code editor?

Hello all,

I’m just getting my teeth into VVVV and loving it.

I am currently experimenting with writing new effects. I was wondering how one outputs a variable, array, etc, if they are looking to debug a variable in the code editor?

I understand you wouldn’t want to output a different value for every pixel that is visited. But for example, say you want to setup a gaussian blur and want to make sure the parameters for your blur are working correctly…

How would one ‘print’ or ‘echo’ or otherwise these values?

I’d appreciate any help,

Cheers,

Jamie :)

since shaders run on the GPU, you cannot debug them on the CPU, but there are some tricks you can use, like writing values into a floating point format texture and reading them with Pipet, or display the debug texture in a renderer.