Forums > Jitter

Capturing multiples with jit.gl.sketch

April 29, 2011 | 5:12 pm

Hello,
I’ve got a question about capturing multiples with jit.gl.sketch, im using this instead of the render to texture method so i can get rid of the background with reset, glclearcolor 1. 0. 0. 0., glclear.

Unfortunately the cubes aren’t being rendered in the correct order, i.e some appear in front of others when they should be behind- take a look at this patch cobbled together from others.

– Pasted Max Patch, click to expand. –

Ive tried messing around with depth_enable, blend_enable and cull_face but im not getting anywhere with them!

As usual any ideas would eb much appreciated!


May 2, 2011 | 12:25 am

@depthbuffer 1 on the jit.window
@depth_enable 1 on the gl.gridshape that is the target of the gl.multiple
@capture_depthbits 1 on the gl.texture that is capturing the output of gl.sketch


May 13, 2011 | 1:44 pm

Thanks Robert, i got there in the end- what a silly mistake!


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