Re: [osg-users] Trouble with a simple shader program.

2015-04-12 Thread Sebastian Messerschmidt
Have you tried to use the gl_ModelviewProjectionMatrix? I dont have seen any reference to enableVertexAttributeAliasing. Cheers Sebastian -- Alexander Wieser alexander.wieser@crystalbyte.deschrieb: Hi, I am currently working on my bachelor thesis which involves the

Re: [osg-users] Trouble with a simple shader program.

2015-04-12 Thread Robert Osfield
Hi Alexander, If you want to use the osg_ModelViewMatrix then you need to enable it via the osg::State object for the graphics context. See the osgsimplegl3 example, it has: // for non GL3/GL4 and non GLES2 platforms we need enable the osg_ uniforms that the shaders will use, // you

Re: [osg-users] Trouble with a simple shader program.

2015-04-12 Thread Alexander Wieser
Hi, unfortunately there is no negative output, the shader compiles fine. I doubt there will be any errors if the input channels are simply not set. In that case they will be zero and the output vertex will also be zero, which would explain the lack of any visible pixels, can't be sure though.

Re: [osg-users] Trouble with a simple shader program.

2015-04-12 Thread Şan Güneş
Hello Alexander, On 11/04/2015 20:21, Alexander Wieser wrote: Vertex Shader Code: #version 430 uniform mat4 osg_ModelViewProjectionMatrix; in vec4 osg_Vertex; void main() { gl_Position = osg_ModelViewProjectionMatrix * osg_Vertex; } I don't remember using anything that starts with

Re: [osg-users] Trouble with a simple shader program.

2015-04-12 Thread Alexander Wieser
Hi, thank you for providing me with some insight. I had already stumbled upon exactly this example: // for non GL3/GL4 and non GLES2 platforms we need enable the osg_ uniforms that the shaders will use, // you don't need thse two lines on GL3/GL4 and GLES2 specific builds as these

[osg-users] Trouble with a simple shader program.

2015-04-11 Thread Alexander Wieser
Hi, I am currently working on my bachelor thesis using which involves the OpenSceneGraph. One task is to apply a distortion Shader to a rendered texture. Unfortunately I am failing in getting any Shader to work at all. After spending the last couple of days researching and reading books, I

Re: [osg-users] Trouble with a simple shader program.

2015-04-11 Thread Alexander Wieser
Hi, I managed to get one step closer, if I remove the vertex shader the color is properly displayed. The obvious conclusion is that the vertex shader is bullocks ... Is it possible that the attributes, such as osg_Vertex are no longer available ? Thank you! Cheers, Alexander

Re: [osg-users] Trouble with a simple shader program.

2015-04-11 Thread Alexander Wieser
Hi, I am currently working on my bachelor thesis which involves the OpenSceneGraph. One task is to apply a distortion shader to a rendered texture. Unfortunately I am failing in getting any shader to work at all. After spending the last couple of days researching and reading books, I managed

Re: [osg-users] Trouble with a simple shader program.

2015-04-11 Thread Trajce Nikolov NICK
Hi Alexander, what does it says on the console? Any shader errors, obviously it reports if the shader is buggy Nick On Sun, Apr 12, 2015 at 1:23 AM, Alexander Wieser alexander.wie...@crystalbyte.de wrote: Hi, I managed to get one step closer, if I remove the vertex shader the color is