Login  Register

Re: Texture2D and offscreen rendering problem

Posted by jimmypag on Feb 09, 2014; 9:30pm
URL: https://forum.jogamp.org/Texture2D-and-offscreen-rendering-problem-tp4030882p4031519.html

Hi Harvey,


I got sources from git, put them in netbeans and tried to understand something.
But as pipeline is just a bridge, it's quite hard to figure out all the rendering process.

What I just found it is that if I revert changes in createOffScreenBuffer to before february commit of August changes, offscreen works again (deprecated pbuffer used instead of new methods and FBO).

At least it's a start.

Edit:
just replacing
        GLDrawable offDrawable = GLDrawableFactory.getFactory(profile).createOffscreenDrawable(device, offCaps, null, width, height);
by
        GLDrawable offDrawable = GLDrawableFactory.getFactory(profile).createGLPbuffer(GLDrawableFactory.getDesktopFactory().getDefaultDevice() ,offCaps, null,width, height, GLContext.getCurrent());
does the trick but createGLPbuffer is deprecated so we have to find another solution or dig into jogl sources ?

Laurent.