losing alpha channel with @capture in OpenGL


    Jan 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.

    • Jan 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: