Forums > Jitter

losing alpha channel with @capture in OpenGL

January 19, 2011 | 7:00 pm

I’ve read other posts on the forum about this, but still could use some clarification. When using the @capture attribute with a jit.gl.mesh (or any OB3D) the alpha information in the mesh’s applied color is lost. Is this expected behavior? Is there a way to prevent this?

Below patch illustrates the issue — rotate the object to see the erase_color alpha effect, then click on the message "capture tex1" to see the change.

– Pasted Max Patch, click to expand. –

January 19, 2011 | 8:14 pm

in order to capture alpha, you need to use the glclearcolor message to gl.sketch.

in order to simulate the erase_color attribute, you can do some slab processing using, eg. the tp.slide shader or the co.accum shader.

here is a basic example using your original patch:

– Pasted Max Patch, click to expand. –

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