Open clankill3r opened 1 year ago
Ok, I figured something out.
int LINEAR = 3;
int BILINEAR = 4;
int sampling = (frameCount & 1) == 0 ? BILINEAR : LINEAR;
gl_texture(passes[3]).usingMipmaps(true, sampling);
Switching the filter for the mipmap every frame makes it works, of course this is a workaround and not a fix but I can live with it for now.
I tried to isolate the problem, but if I get rid of the PGraphics for example the bug seems to disappear.
If I run the below script I get:
If I comment out the following: (which is not what I want):
Then it works again:
Now the interesting part:
If I use:
Instead of:
Then the
usingMipmaps
part works...(Also if the usingMipmaps is before
if (movie.available()) {
then there is a nullpointerException).The video file: https://github.com/processing/processing-video/assets/738650/f7a6ba31-b697-49fb-aeac-110823d0453d