Hello, i'm trying to use Geometry Shader in GLGraphics, but not luck at all. First i tried in GLSLShader, then in GLCgShader but have errors like
GLCgShader: Cg error(s) in diffusegeom.cg
GLCgShader: The compile returned an error.
GLCgShader: (10) : error C3004: function "__internal void emitVertex(<error>);" not supported in this profile
after looking into latest sources from svn i see you are force for shader using profile CgGL.CG_PROFILE_ARBFP1
so meybe this is problem?
Can you please help me with this? or maybe even better, make small sample how to use Geometry Shader in GLGraphics?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. I uploaded a new test package (2011-04-10) which fixes several issues I found in the handling of geometry shaders with GLSL. I also added a new example showing mesh subdivision using geo. shaders.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-04-11
Thanx a lot! Sample working ok for me! Will test my code now!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, i'm trying to use Geometry Shader in GLGraphics, but not luck at all. First i tried in GLSLShader, then in GLCgShader but have errors like
GLCgShader: Cg error(s) in diffusegeom.cg
GLCgShader: The compile returned an error.
GLCgShader: (10) : error C3004: function "__internal void emitVertex(<error>);" not supported in this profile
after looking into latest sources from svn i see you are force for shader using profile CgGL.CG_PROFILE_ARBFP1
so meybe this is problem?
Can you please help me with this? or maybe even better, make small sample how to use Geometry Shader in GLGraphics?
Hi, geometry shaders are not well tested in GLGraphics… I'll try to get a minimal glsl example running in the following days and will update about it.
Hello. I uploaded a new test package (2011-04-10) which fixes several issues I found in the handling of geometry shaders with GLSL. I also added a new example showing mesh subdivision using geo. shaders.
Thanx a lot! Sample working ok for me! Will test my code now!