Im new to jogl (but ive done some opengl in c in the past) and im struggling to do some offscreen rendering. Basically im trying to do some basic image filtering using shaders.
I’ve successfully accomplished this using the builtin GLPbuffer class but the performance of Screenshot.readToBufferedImage is really poor. I know that you can get better performance from glReadPixels (and thus Screenshot.readToBufferedImage) if you use framebuffer objects with rendberbuffers. However I don’t know how to make a valid opengl context and GL object to use.
I tried using GLDrawableFactory.createExternalContext but you need a context to be current in order to do this.
I guess i could make a small glpbuffer in the background to create a context immediately on that thread, but it seems like a big hack.
What is the preferred method for doing this in jogl?
Thanks.