Hi,
On Wed, 2009-04-15 at 16:40 +0200, Marcus Lindblom wrote:
> Hi,
>
> I recently added a call validateAllGLObjects() after our scene load, to
> make sure everything runs smoothly from frame 1.
>
> However, this has lead to some problems and I don't know where to search
> for this.
>
> We use QT4, QGLWidget and PassiveWindow, so I've added the following
> function which ought to do the trick:
>
> void OpenSGWidget::validateAllGLObjects()
> {
> makeCurrent();
> // remove DrawEnv object once our OpenSG has been updated to
> include
> // http://opensg.vrsource.org/trac/changeset/1849
> OSG::DrawEnv env;
> env.setWindow(_window);
> _window->validateAllGLObjects(&env);
> }
>
> However, recently it has started to cause our shader objects to fail
> with the following repeated about 20-30 times in the log: (we have our
> own log system that we pipe OpenSG's log stream through)
>
> 31.971 [error] 1 OpenSG : Couldn't link vertex and fragment
> program!
> 31.971 [error] 1 OpenSG : Link info
> 31.971 [error] 1 OpenSG : ---------
> 31.971 [error] 1 OpenSG : No shader objects attached.
>
> And the shaders aren't there. With the validate-call disabled, it works.
>
> AFAKT, we do not modify any shaderchunks' programs after our validate
> call, everything should be set up before that.
>
> Any ideas where to start looking?
>
one simple thing to try, could you add a commitChanges before
calling validateAllGLObjects. The new shaders require a commitChanges
in order to update internal structures before their handleGL
can be called.
kind regards,
gerrit
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users