Hey,
im having a problem with the mapping tools library and the controlP5 library.
Im not quite sure if its them, or if the problem is anywhere else.
the setup is that i want to use a beamer and my monitor.
ive a "GLTextureWindow" in which i load a texture which is filled with a video of the GsVideo Lib
this texture is rendered in a freeWarp Object
i draw them twice
once in the monitor and once in the beamer – that kinda looks like that
- void draw() {
- if (mov.available()) {
- background(0);
- mov.read();
- if (tex.putPixelsIntoTexture()) {
- if ((mov.duration() - mov.time()) < 3) {
- println("END OF VIDEO");
- goToNextActive();
- mov.delete();
- mov = new GSMovie(this, path+"/"+filenames[globalVideoCounter]);
- // delay(800);
- // if (mov.available()) {
- mov.read();
- // }
- mov.setPixelDest(tex);
- mov.play();
- }
- if (mode == 0) {
- if (calibration) {
- qw.showControls(true);
- qw.render(logo);
- }
- else {
- qw.showControls(false);
- qw.render(tex);
- }
- canvas.beginDraw();
- canvas.clear(0);
- background(0);
- if (calibration) {
- qw.showControls(true);
- qw.render(logo);
- }
- else {
- qw.showControls(false);
- qw.render(tex);
- }
- canvas.endDraw();
- }
everything so fine this far –
no Problems
BUT –
for some reason if i draw my ControlP5 on the monitor – the texture starts flickering
if i hide the controlP5 – everything is fine …
as far as i know the same thing happens if i try to write text on the monitor …
does anyone have an idea what this could be about … and if its fixable or somewhere deep in the libraries?
Thanks
CC
1