Geometry shaders

Hello there.

Is there any news about jogl supporting geometry shaders ?

ive search the docs but there are no GS profiles available. atleast i didnt see anything…

anyone ?

JOGL supports geometry shaders fine.


...
int id = gl.glCreateShader(GL.GL_GEOMETRY_SHADER_EXT);
...
gl.glProgramParameteriEXT(GL.GL_GEOMETRY_INPUT_TYPE_EXT, GL.GL_POINTS);
gl.glProgramParameteriEXT(GL.GL_GEOMETRY_OUTPUT_TYPE_EXT, GL.GL_LINE_STRIP);
gl.glProgramParameteriEXT(GL.GL_GEOMETRY_VERTICES_OUT_EXT, 22);
...

// GEOMETRY PROFILES
CgGL.cgGLGetLatestProfile( CgGL.CG_GL_GEOMETRY );

i’ve downloaded 1.1.2 and there is no profile for GS.

im using CgFX and when i try to run an effect, it gives me an error on compile…

what profile is there for GS available… arbgp1 ??

Hello again,

even if CgFX doesnt work out with GS (which by nvidia’s website it does, since i saw a report there that said they fixed problems of multipl GS with CgFX) how will i load a geometry program using cgCreateProgramFromFile( … ) if i cant see any geometry program profile to compile it with ?

anyone ?

even if I can’t answer your question, GLSL geom shaders work perfectly, i’ve never used cg before…

well, ok. but for you to use GLSL, you have to use glCreateShader() and u have to load the shader using a profile correct ?

what is the profile you use? where do u get it from in JOGL ?

i dont see any profiles in java other that ARBVP1, ARBFP1.

am i wrong ?

GLSL has no profiles. Fragment and vertex shaders are a core feature of GL 2.1, geometry shaders are available as extention. Each shader is written in GLSL against a specific language version, you may define on top of the file (latest and greatest is 1.3). You can ask gl e.g for GLSL 1.2 support etc…

i am pretty sure i only saw the term “profile” in context of CG or GL3.x profiles but not for GLSL.

hi bienator,

yes, you are correct. after some research i go to that conclusion. i have been escaping from glsl, since i find it a bit too much high level. but if thats what it takes to work geometry shader in java for now i think i must give it a try.

but ill be waiting for jogl to support gl3 and cgfx more deeply.

thanks for ur time