[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 manag

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 to

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. T

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 > t