jit.gl : multipass rendering (shader)

Jun 26, 2008 at 5:57pm

jit.gl : multipass rendering (shader)

Hi,
I’m actually working on some small shader (GLSL) in order to do some process on video.
I currently fronting a small barrier. How can I make a multipass fragment shader ? How can I render my scene into a texture in order to repass them into my shader process ?
If you got some examples patch, it will be really helpfull.
thanks for your help,
++
thomas

#38612
Jun 26, 2008 at 6:49pm

perhaps you could use few connected jit.gl.slab objects?

On Jun 26, 2008, at 7:57 PM, Thomas Pachoud wrote:

>
> Hi,
> I’m actually working on some small shader (GLSL) in order to do some
> process on video.
> I currently fronting a small barrier. How can I make a multipass
> fragment shader ? How can I render my scene into a texture in order
> to repass them into my shader process ?
> If you got some examples patch, it will be really helpfull.
> thanks for your help,
> ++
> thomas

#134807
Jun 26, 2008 at 6:59pm

yes,
it seems to be part of what I was searching for.
I’m doing some experiments, right now.
Thanks,
thomas.

#134808
Jun 27, 2008 at 4:42am

If you want to render to texture, there are plenty of example patches. Most use ‘to_texture’ message to jit.gl.render, but you can also use @capture with jit.gl.sketch and its draw_objects method.

If you only need to render to texture a single object, @capture is the easiest method.

#134809
Jun 27, 2008 at 7:22am

thanks,
I’ll check out all this today.

#134810

You must be logged in to reply to this topic.