Most likely your geometry shader is broken.
I can try to check it using your code later this afternoon (CET).

Cheers
Sebastian
Hi Sebastian,


SMesserschmidt wrote:
1. Is the shader really set to the correct state set? Try some simple 
non-geometry shader to see if it is working in general.
I commented line 29 in the .cpp file that adds the geometry shader to the 
program, and a red point was displayed in the centre of the screen, so that's 
that.


SMesserschmidt wrote:
2. Are there errors when using the shader? Some drivers don't produce an error 
if the passed primitive doesn't match the geometry-shader type.

Check the output of the console and try a less complicated shader to see where 
it fails.
The shaders compile and link fine (including the geometry shader) but as I said there is 
no output. I tried replacing my current geometry shader with a simpler 
"pass-through" shader (code below), which worked and I can now see a red point 
in the centre of the window.


Code:
#version 330

layout(points) in;
layout(points) out;

in vec4 vPosition[1];

uniform mat4 ModelviewProjection;

void main()
{
        gl_Position = ModelviewProjection * vPosition[0];
        EmitVertex();
}



So obviously there is something wrong with either the geometry shader or my C++ 
code, any ideas?

Cheers,
Ahmed

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=61076#61076




Attachments:
http://forum.openscenegraph.org//files/screenshot_177.png


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to