my goal is to get the pixel array from a GLGraphicsOffscreen Texture, to pass to a blob detection.
GLGraphicsOffscreen finalTexture;
within the draw loop:
finalTexture.beginDraw();
....
finalTexture.endDraw();
i try
finalTexture.loadPixels();
for (int i=0;i<finalTexture.pixels.length;i++){
println(" pixel # " + i +" = " + finalTexture.pixels[i]);
}
and even though the offscreenImage is displayed correctly, the arry is completly black.
i also tryed to access it via
finalTexture.getTexture.pixels
with no luck.
1