losing alpha channel with @capture in OpenGL

Jesse's icon

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?

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

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.

Rob Ramirez's icon

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.

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

here is a basic example using your original patch: