replace PImage.copy in P3D ?
in
Programming Questions
•
6 months ago
Hi,
I would like make some blobs detection which uses PImage.copy.
Unfortunately there's kind of bug using this into P3D mode. (the image freezes in very strange way…).
Anyway, how could I replaced PImage.copy in this code :
I would like make some blobs detection which uses PImage.copy.
Unfortunately there's kind of bug using this into P3D mode. (the image freezes in very strange way…).
Anyway, how could I replaced PImage.copy in this code :
- void draw()
{
if (newFrame)
{
image(cam, 0, 0, width, height);
img.copy(cam, 0, 0, cam.width, cam.height,
0, 0, img.width, img.height);
fastblur(img, 2);
theBlobDetection.computeBlobs(img.pixels);
drawBlobsAndEdges(true, true); - newFrame=false;
}
}
And another point: when I do this:
- if (newFrame) { newFrame = false;………………………
the rest of the loop is not read and the image is still grey, which is not the case in "normal renders".
I couldn't found any docs about the difference between P3D and others renders…would be very interesting for me to know how P3D handles things, priority…
I couldn't found any docs about the difference between P3D and others renders…would be very interesting for me to know how P3D handles things, priority…
thanks in advance
1