Login  Register

Re: Oculus Rift SDK-041 with JOVR and GL 2.1

Posted by BrickFarmer on Sep 01, 2014; 7:59am
URL: https://forum.jogamp.org/Oculus-Rift-SDK-041-with-JOVR-and-GL-2-1-tp4032939p4032999.html

Here is my limited progress so far:

https://developer.oculusvr.com/forums/viewtopic.php?f=20&t=13642

My NEWT window it is initially full of garbage.  Is there a way to request a NEWT window that is initially blank?

Here is how I'm creating my 2 offscreen buffers:

        GLOffscreenAutoDrawable leftEye = glDrawableFactory.createOffscreenAutoDrawable(null, caps, null, renderTargetEyeSize.w, renderTargetEyeSize.h);
        GLOffscreenAutoDrawable rightEye = glDrawableFactory.createOffscreenAutoDrawable(null, caps, null, renderTargetEyeSize.w, renderTargetEyeSize.h);

This is how I retrieve my 2 textureId for passing down to the SDK.  The two offscreen buffers seem to return the same textureID (1), am I doing something wrong here?

            final GLFBODrawable fboDrawable = (GLFBODrawable)drawable.getDelegatedDrawable();
            final TextureAttachment texAttach = fboDrawable.getColorbuffer(GL.GL_FRONT).getTextureAttachment();
            int eyeTextureId = texAttach.getName();