Forums > Jitter

how can i apply a chain of shaders to the graphic created by jit.gl.graph?

June 7, 2012 | 6:46 pm

hello everyone,

i’m brand new to the gl world. what i’m trying to do is to get the output of jit.gl.graph and manipulate it with say some color shaders as I would do in the world of matrices.

is there a way that I can get to ‘capture’ the output of gl.graph to some object so that i can feed it to a chain of effects (my eventual goal is a feedback chain containing slabs)? I found that the jit.gl.graph does not provide anything (no matrix or gl) at its outlet.

i hope i do not sound terribly ignorant. first week with jit.gl :)

thanks.

t.


June 7, 2012 | 9:49 pm

hello.
you need to set the @capture attribute of the gl object to the name of a jit.gl.texture object.
this will capture the rendering of the object to the texture, allowing you to process further using gl.slabs.

alternatively, you can use the jit.gl.node object to capture several gl objects to texture.

– Pasted Max Patch, click to expand. –

June 13, 2012 | 3:52 am

Thank you so much Robert,

for your attention and great demonstration. it’s all clear now.

cheers.


Viewing 3 posts - 1 through 3 (of 3 total)