Re: [osg-users] Shader problem on nvidia card

2010-12-22 Thread Robert Osfield
Hi Aitor, The warning you are getting "OpenGL version test failed, requires valid graphics context." suggests that you are trying to do rendering from a thread that doesn't have a graphics context current. I know nothing about how you are setting up your graphics context or how you manage you fra

[osg-users] Shader problem on nvidia card

2010-12-22 Thread Aitor Ardanza
Hi, I have a problem when I apply a shader to an object in osg. I tried it on two machines. One with an intel G41 graphics card, which does not give me any problem, and the other is a NVidia GTX 480, which gives me the problem. When osg try to compile the shader, skip the following error: FRAG

Re: [osg-users] Shader Problem

2008-06-12 Thread CG
lu 2008/6/12 CG <[EMAIL PROTECTED]>: Hi David, I'm using osg 2.4 and osgViewer. Regards,Cg Date: Thu, 12 Jun 2008 11:09:49 +0200From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [osg-users] Shader Problem hi CGwhen you remove a shader, osg::Program need to be relinked.this is d

Re: [osg-users] Shader Problem

2008-06-12 Thread David Callu
Jun 2008 11:09:49 +0200 > From: [EMAIL PROTECTED] > To: osg-users@lists.openscenegraph.org > Subject: Re: [osg-users] Shader Problem > > > hi CG > > when you remove a shader, osg::Program need to be relinked. > this is done by osgUtil::GLObjectVisitor in osgViewer::Renderer::draw > m

Re: [osg-users] Shader Problem

2008-06-12 Thread CG
Hi David, I'm using osg 2.4 and osgViewer. Regards, Cg Date: Thu, 12 Jun 2008 11:09:49 +0200From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [osg-users] Shader Problemhi CGwhen you remove a shader, osg::Program need to be relinked.this is done by osgUtil::GLObjectVisitor in osgViewer::Rende

Re: [osg-users] Shader Problem

2008-06-12 Thread David Callu
hi CG when you remove a shader, osg::Program need to be relinked. this is done by osgUtil::GLObjectVisitor in osgViewer::Renderer::draw method. So this seem can be done at runtime. Which OSG version did you use ? Did you use osgViewer ? David Callu 2008/6/12 CG <[EMAIL PROTECTED]>: > Hi all,

[osg-users] Shader Problem

2008-06-12 Thread CG
Hi all, Are there any ways to remove the shader during runtime? I've tried the removeShader function but the effect of the shader is still applied to my models (e.g tank) i.e. the appearance of the models do not go back to the state before shader is applied. Regards,Cg __