Capturing multiples with jit.gl.sketch

Apr 29, 2011 at 5:12pm

Capturing multiples with jit.gl.sketch

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!

#56720
May 2, 2011 at 12:25am

@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

#203276
May 13, 2011 at 1:44pm

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

#203277

You must be logged in to reply to this topic.