Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : [2.0xx] How to set P2D/P3D PGraphics pixels to transparent via the pixel array?

$
0
0
This issue is due to how the pixels array is composited into the offscreen buffer when using multisampling. If you initialize your pg object w/out smooth, then the transparency will be ok. Just committed the fix to the repo, so the next release won't have this problem. For the time being, a workaround is to call pg.background(0, 0) right after pg.beginDraw() (or use pg with noSmooth).

Viewing all articles
Browse latest Browse all 1768

Trending Articles