Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-07 Thread Ulrich Hertlein
On 6/08/09 8:19 PM, Pau Moreno wrote: No I'm not having errors of compiling shaders, and executing it. Returning to the topic of this post: If I comment the MultitexCoord line, nothing is showing in the viewer, but that's logic. The problem if is it uncommented ( I need theis function so I

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-07 Thread Pau Moreno
Hi, Thanks Ulrich, but I think this set one parameter for each vertex, and I really need 32 values for each vertex (that's what I'm using multitexcoord) Finally I think I have this problem solved, I had some problems with the glew initialization. Now I'm having other problems uploading a

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-07 Thread Jean-Sébastien Guay
Hi Pau, Thanks Ulrich, but I think this set one parameter for each vertex, and I really need 32 values for each vertex (that's what I'm using multitexcoord) Finally I think I have this problem solved, I had some problems with the glew initialization. Now I'm having other problems uploading a

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-06 Thread Stephan Huber
Hi, Pau Moreno schrieb: brickVertexObject-readShaderFile ( osg::Shader::VERTEX , /home/Pau/OSG/Test1/Debug/Shaders/TestG80_VS.glsl ); brickFragmentObject-readShaderFile( osg::Shader::FRAGMENT , /home/Pau/OSG/Test1/Debug/Shaders/TestG80_GS2.glsl );

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-06 Thread Pau Moreno
Hi, I saw this mistake before and I correct it but I'm still having the same error. With all the shaders :S Any idea? Thank you! Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15927#15927

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-06 Thread Pau Moreno
Ok, I finally can solve it with this function: loadShaderSourceFromFile(...) No I'm not having errors of compiling shaders, and executing it. Returning to the topic of this post: If I comment the MultitexCoord line, nothing is showing in the viewer, but that's logic. The problem if is it

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-05 Thread Ulrich Hertlein
Hi Pau, On 5/08/09 1:58 AM, Pau Moreno wrote: I've realized that the problem is that I'm losing the graphics context. I'm having the same problem with the inicialization of a shader, and it crashes here before the glMultiTexCoord4f(), so I think if I solve the problem with the shader this

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-05 Thread Pau Moreno
Hi, Since I know, OSG doesn't have support for geometry shaders, does it? I'll check it again. Thank you! Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15857#15857 ___ osg-users

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-05 Thread Thrall, Bryan
Pau Moreno wrote on Wednesday, August 05, 2009 12:22 PM: Since I know, OSG doesn't have support for geometry shaders, does it? I'll check it again. It has had support since January, 2008, according to the SVN log; see osg::Shader. -- Bryan Thrall FlightSafety International

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-05 Thread Pau Moreno
Hi, Ok, I've decided to follow your idea and do it with the osg shaders but I'm getting the next error Code: FRAGMENT glCompileShader FAILED FRAGMENT Shader infolog: (0) : error C: syntax error, unexpected $end at token EOF (0) : error C0501: type name expected at token null atom VERTEX

[osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-04 Thread Pau Moreno
Hi, I'm trying to use multitexture in a class that inherit from Drawable. I use glMultiTexCoord4f inside of the drawImplementation, because I need this function to work with this parameters I have in a geomtryShader, but by some reason a get a Segmentation Fault while I'm using it... Shall I

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-04 Thread Thrall, Bryan
Pau Moreno wrote on Tuesday, August 04, 2009 3:18 PM: I'm trying to use multitexture in a class that inherit from Drawable. I use glMultiTexCoord4f inside of the drawImplementation, because I need this function to work with this parameters I have in a geomtryShader, but by some reason a get a

Re: [osg-users] glMultiTexCoord4f , OSG with OGL code

2009-08-04 Thread Pau Moreno
Hi, I've realized that the problem is that I'm losing the graphics context. I'm having the same problem with the inicialization of a shader, and it crashes here before the glMultiTexCoord4f(), so I think if I solve the problem with the shader this maybe solves my first issue. My problem is