Porting from JOGL 1.1 to JOGL 2
Posted: Thu 23. Sep 2010, 19:09
I've decided to start a new thread for the discussion of porting jReality from JOGL 1.1 to JOGL 2.
I have already converted most of the code in the src-jogl folder, the exceptions being:
de.jreality.jogl.JOGLFBOViewer
-I have not yet been able to find how the methods ending in EXT are implemented
de.jreality.jogl.shader.DefaultPointShader
-I cannot find the following:
-GL_POINT_SPRITE_ARB
-GL_COORD_REPLACE_ARB
de.jreality.GLslLoader
-I cannot find the following:
-GL_VERTEX_SHADER_ARB
-GL_FRAGMENT_SHADER_ARB
Additionally, much of the code in src-gpgpu has been broken by the switch, and I cannot yet find many of the EXT functions called in it.
For now, I am removing the _ARB extensions and just using the non-_ARB name (e.g. GL_POINT_SPRITE instead of GL_POINT_SPRITE_ARB). If I am reading this site: http://www.cs.vu.nl/~graphics/jogl-1.1. ... ERSION_ARB correctly, they were treated as the same value anyway.
I'm going to figure out what to do with everything ending in EXT now, but I figured that I would make you aware of what I'm doing.
:::EDIT START - Update:::
I replaced the EXT calls with their non-EXT variants. I'm thinking that this was just a difference between new and old specifications in JOGL
:::EDIT END:::
So, questions:
What is actually in src-gpgpu?
Are you guys also working on this?
Once I've finished and tested this, would you like me to share the code?
I have already converted most of the code in the src-jogl folder, the exceptions being:
de.jreality.jogl.JOGLFBOViewer
-I have not yet been able to find how the methods ending in EXT are implemented
de.jreality.jogl.shader.DefaultPointShader
-I cannot find the following:
-GL_POINT_SPRITE_ARB
-GL_COORD_REPLACE_ARB
de.jreality.GLslLoader
-I cannot find the following:
-GL_VERTEX_SHADER_ARB
-GL_FRAGMENT_SHADER_ARB
Additionally, much of the code in src-gpgpu has been broken by the switch, and I cannot yet find many of the EXT functions called in it.
For now, I am removing the _ARB extensions and just using the non-_ARB name (e.g. GL_POINT_SPRITE instead of GL_POINT_SPRITE_ARB). If I am reading this site: http://www.cs.vu.nl/~graphics/jogl-1.1. ... ERSION_ARB correctly, they were treated as the same value anyway.
I'm going to figure out what to do with everything ending in EXT now, but I figured that I would make you aware of what I'm doing.
:::EDIT START - Update:::
I replaced the EXT calls with their non-EXT variants. I'm thinking that this was just a difference between new and old specifications in JOGL
:::EDIT END:::
So, questions:
What is actually in src-gpgpu?
Are you guys also working on this?
Once I've finished and tested this, would you like me to share the code?