layering

Garrett's icon

hi

bit stuck on what I'm pretty sure is a small problem, I'm just trying to layer some particles in front of a videoplane. Usually I'd use @layer but since the particles render straight to the jit.gl.render I'm unsure how this should be done. Can you use two jit.gl.render object per jit.windeow? Does @layer work in jit.gl.render? Below is what I have so far.

Thanks in advance
Garrett

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

Rob Ramirez's icon

you can use a jit.gl.mesh instead of gl.render to draw your particle triangles. just set @draw_mode triangles, and send the particle matrix to the left-most inlet of gl.mesh. @layer will work fine in this case.

Garrett's icon

Great, I was thinking I needed to render it to something but I had no idea what. Thanks for your help Robtherich.

Garrett