beginner problem with rendering destinations
Having trouble changing the rendering destination of some gl stuff to a jit.matrix. The example patch is included. It is based on the brighlights patch from the jitter recipes.
i have a macbook pro, 2 gb RAM, OSX 10.5
i had it working for a brief time but now it repeatedly does not work.
i just want to be able to cross fade the rendered image with another jit.matrix and play around with processing the image i get from the brightlights patch… e.g. place the rendered image on a gl object, etc.
the error message i get is: jit.gl.texture: error attaching texture to readback mechanism for capture!
attached is the patch.
no answer? hmm…
the example patch is pretty clear. Has anyone tried it?
I can send the new name to ‘drawto $1′ and this goes to all my gl objects and i can ‘drawto’ the jit.window and the jit.pwindow no problem but it will not ‘drawto’ the jit.matrix. I read the manual, the help file and the tutorial and i made a jit.matrix 4 char as it said but i still get the error message "jit.gl.texture: error attaching texture to readback mechanism for capture!".
any help or direction would be great.
well, your patch worked as expected for me, although i did see the texture error pop up. fwiw, texture errors like these should be getting fixed for the next version of jitter.
have you tried this in max 4? you might have more success.
my advice would be, rather than readback from the (fast) gpu to the (slower) cpu to do mixing, why don’t you do all mixing on the gpu?
render your matrix to a jit.gl.texture and use one of the compositing or color shaders applied to a slab to mix the two texture objects. check out the composite.shaders-help.maxpat, among some others in the examples folder.
just to give the link to the examples mentioned, there’s the whole "render" folder here:
in particular, there’s jit.gl.render-tomatrix.maxpat in that folder which might help.
but keeping everything on the GPU as was mentioned is definitely better all around.
thanks very much for your replies!
I’ll look into it.