Simple question

AfRo's icon

I've got a simple question. I think i've got it because I just don't really get the render object in jitter:

If I want to apply a simple effect (like jit.slide) to a rendered object (as i.e. the square you get in the help file of jit.gl.render) how should I do that?

Thanks in advance.

Where should i dig deeper into to better understand this principle?

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

jit.slide is for matrix processing.
jit.gl.render manages an opengl context (therefore will not interact with a matrix processing object).

however, you can a tell gl.render to render to a named matrix, and then use jit.slide on that matrix.

if you look at the help file, in the lower left corner there is a matrix named hither. if you press the "drawto hither" message box, gl.render will do just that, and you can connect jit.slide to the output of hither.

all this is covered in the tutorials and reference files.
-rob

AfRo's icon

Thanks man,

I got this working, but it's kinda CPU expensive. Is it also possible to use a slab to create this effect. In the jitter examples I saw the jit.gl.slab-slide patch. But it's used on a video, not on a jit.gl.model. Does anyone has an idea how I could do this?

Thanks in advance!

Rob Ramirez's icon

render to texture and process the texture with slabs.