Login  Register

Re: pbuffer / FBO : lost and white screen

Posted by Sven Gothel on Sep 23, 2012; 3:26pm
URL: https://forum.jogamp.org/pbuffer-FBO-lost-and-white-screen-tp4026246p4026249.html

On 09/23/2012 12:42 PM, ElJojo [via jogamp] wrote:
> Hi,
> I read a lot of forum (this one, JGO ...) and I cannot found clear example for
> offscreen rendering. The last I tried is what Sven said :
> https://github.com/demoscenepassivist/SocialCoding/blob/master/code_demos_jogamp/src/framework/base/BaseFrameBufferObjectRendererExecutor.java
>
Please check our (new) unit tests in regards of offscreen rendering (FBO, pbuffer, bitmap).
You will find a lot in
  <http://jogamp.org/git/?p=jogl.git;a=tree;f=src/test/com/jogamp/opengl/test/junit/jogl/acore;hb=HEAD>
with the name OffOnScreen etc, like:
  <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableDelegateOnOffscrnCapsNEWT.java;hb=HEAD>
  <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLAutoDrawableFactoryOffscrnCapsNEWT.java;hb=HEAD>

there are also FBO dedicated ones, you will find them ..

> I choose a simple test first : I want to save a file of a resized a texture.

Snapshots of resized offscreen drawables are taken in all those demos.

> Here is my code : RenderEngine.java
> <http://forum.jogamp.org/file/n4026246/RenderEngine.java>

Dominik is the man for the above code .. haven't read his code in detail yet.
However, our unit tests cover most if not all offscreen cases.

~Sven




signature.asc (907 bytes) Download Attachment