Hi Mathieu,

The error with -QOSGWidget looks to be a bug in this code, but its a
totally different path that the default path which uses
GraphicsWindowEmbedded to adapt the Viewer.  QOSGWidget is the most
flexible path for integration and long term I'd like this to be the
default route under Qt.  My own time is rather stretched out so I
can't address all these things at once.

The issues you are seeing with the default path is very unlikely to be
related to transparency, most likely is issues with display lists or
texture objects being reused inappropriately.  In theory the viewer
should be release OpenGL objects when the context is destroyed, but
with GraphicsWindowEmbedded not all the standard functionality for
managing OpenGL objects is available, so perhaps this step is not
being executed appropriately.

One thing you could try is a

    viewer->getSceneData()->releaseGLObjects();
    osg::GLObjects::discardAllDeletedGLObjects(0);

In between the viewer allocations.

Robert.

On Wed, May 7, 2008 at 11:59 AM, Mathieu Champlon
<[EMAIL PROTECTED]> wrote:
> Hello,
>
>  Thanks for your reply !
>
>  I am indeed running "osgviewerQT windows.ive".
>  If I add --QOSGWidget I get this error message right away : Windows Error
> #2000: [Screen #0] GraphicsWindowWin32::setWindow() - Unable to create
> OpenGL rendering context. Reason: The pixel format is invalid.
>  Followed by a crash (_gw is 0 in QOSGWidget::resizeEvent due to the failure
> to initialize properly).
>
>  I'm using Qt 4 by the way, I forgot to mention it.
>  And also I have loads of .ive working fine, this one is among the 3 or 4
> which exhibit the issue. It looks like the common trait might have to do
> with transparency.
>
>  I also tried the same test procedure with examples/osgwindows and it works
> fine.
>  Moreover I just tested on a Windows XP with an (old FireGL V3100) ATI
> graphics card and everything works perfectly.
>
>  Do you have any suggestion ?
>  Should I just wait and hope for the next NVidia drivers ? :)
>
>  Thanks !
>  MAT.
>
>
>
>  Robert Osfield wrote:
>
> > Hi Mathieu,
> >
> > I've tried your windows.ive and the suggested mods to osgviewerQT and
> > it works fine even for running 6 viewers consecutively  using
> > osgviewerQT windows.ive, but if I add --QOSGWidget I get a crash on
> > the second run.
> >
> > FYI, I'm running under Linux.
> >
> > What command line are you using?
> >
> > Robert.
> >
> >
>
>
>
>  _______________________________________________
>  osg-users mailing list
>  [email protected]
>  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to