Login  Register

Re: Porting RoomTiny to Jogl

Posted by BrickFarmer on Aug 23, 2014; 2:35pm
URL: https://forum.jogamp.org/Porting-RoomTiny-to-Jogl-tp4032722p4032904.html

So I changed the following to get past that strange error.

//        GLProfile gLProfile = GLProfile.getDefault();
        GLProfile gLProfile = GLProfile.get(GLProfile.GL3);
        System.out.println("got: " + gLProfile.getGLImplBaseClassName());

Next I had a complaint about shader 'texture2D' which a google search seemed to indicate might be deprecated?  I tried 'texture' instead and now now I get a black window appearing with the following error:

got: jogamp.opengl.gl4.GL4bc
setupOculus()
/setupOculus()
init
reshape (0, 0) (1296, 816)
Error 1282 !
reshape (0, 0) (1296, 816)
Error 1281 !
reshape (0, 0) (1296, 816)
Error 1281 !
Error 1281 !

I noticed the code uses shaders, but isn't the SDK responsible for that now?  Am I trying to get the wrong demo running with DK2?  Sorry if I'm asking basic questions, I just want to get something simple running with JOGL so that I can then tear it to bits and understand what approach I need for my own project :)