public static GL begin(PApplet app) {
pgl = ((PGraphicsOpenGL) app.g).beginPGL();
gl = pgl.gl.getGL().getGL2();
Verbose.debug("This system uses OpenGL:"+gl.glGetString(GL.GL_VERSION));
return gl;
}
However, when I bind this FBO to render to its attached texture, the completeness test fails and report a GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT, which seems to indicate that there is no texture attached to the FBO.
This is how I'm binding the FBO inside the sketch draw() method:
I checked the PGL class source code and I can see that a few FBOs are also created there. Could there be some sort of conflict when using multiple FBOs?
I've tried more involved debugging technics without much luck either.
Even if I get this working, I'm not sure this is the most effective solution (see here). Any thoughts?
I'm far from being an OpenGL expert and I have very little understanding of how it is setup by Processing, so I'm open to any suggestion regarding a different way of achieving the same thing (take snapshots and save them to files, render at different scales in realtime, do high resolution rendering).
Thanks in advance and have a merry easter.