Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-25 Thread Mihai Radu
Hi, I hit the same problem with code ported from 1.2 to 2.0, and to trace it I used gDebugger ( the trial ) and set breakpoints to OpenGL errors. In my case it turned out to be using osg::Program without any shaders for some parts of the scene. I'll try this way also, see if it confirms the gDebb

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )" (UNCLASSIFIED)

2007-10-25 Thread Robert Osfield
On 10/24/07, Craig, Joel S. (SED/TMI) <[EMAIL PROTECTED]> wrote: > Classification: UNCLASSIFIED > Caveats: NONE > > We received this error message whenever our thread tried to update the state > of a node while the drawing thread was trying to render it. Adding a mutex > solved our issue. You sh

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-24 Thread Jean-Sébastien Guay
Hello again, >> We received this error message whenever our thread tried to update the state >> of a node while the drawing thread was trying to render it. Adding a mutex >> solved our issue. > > Hmmm, I'm doing this in the update traversal, so I should be ok on > that front... But maybe I'll test

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-24 Thread Jean-Sébastien Guay
Hello Joel, > We received this error message whenever our thread tried to update the state > of a node while the drawing thread was trying to render it. Adding a mutex > solved our issue. Hmmm, I'm doing this in the update traversal, so I should be ok on that front... But maybe I'll test it out

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-24 Thread Jean-Sébastien Guay
Hello Chuck, > This was Robert's response to a similar situation: Yes, that was the message I was looking for. Thanks! J-S -- __ Jean-Sebastien Guay [EMAIL PROTECTED] http://whitestar02.webhop.org/ ---

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-24 Thread Jean-Sébastien Guay
Hello Michael, > I think calling the following might be what you are looking for to > narrow down the source of your error. > >pState->setCheckForGLErrors > (osg::State::CheckForGLErrors::ONCE_PER_ATTRIBUTE) > > where pState is a pointer to the osg::State. Yep, that sounds like it should do t

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )" (UNCLASSIFIED)

2007-10-24 Thread Craig, Joel S. (SED/TMI)
Behalf Of Jean-Sébastien Guay Sent: Wednesday, October 24, 2007 2:00 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )" Hello Robert, I remember you mentioning a way (in OSG) to fi

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-24 Thread Cole, Charles E. (LARC-B702)[GENEX SYSTEMS]
This was Robert's response to a similar situation: ---> Its likely that some OpenGL state you are setting isn't supported on your hardware. The big question is what OpenGL features are causing this problem. You could enable finer grained checking for OpenGL errros via osg::State::setCheckForGLEr

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-24 Thread Michael Henheffer
Hi J-S, I think calling the following might be what you are looking for to narrow down the source of your error. pState->setCheckForGLErrors (osg::State::CheckForGLErrors::ONCE_PER_ATTRIBUTE) where pState is a pointer to the osg::State. Hope this helps, Mike Jean-Sébastien Guay wrote: > H

Re: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-24 Thread beelzebob999-osg
2:59:44 PM Subject: [osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )" Hello Robert, I remember you mentioning a way (in OSG) to find out the source of the message Warning: detected OpenGL error 'invalid value' after

[osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

2007-10-24 Thread Jean-Sébastien Guay
Hello Robert, I remember you mentioning a way (in OSG) to find out the source of the message Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,) sometime in the past, but can't find the post just now. I recall it having to do with setting something in a stateset to get expl