Hi Robert,

It definitely looks like some sort of graphics context problem.

Creating a producer render surface with the window handle of the wxGLCanvas 
(and realizig the surface) seems to fix the problem. Seems to point to the 
wxGLCanvas as the problem.

Thanks,
Gian


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Robert Osfield
Sent: Tue 8/22/2006 8:57 PM
To: osg users
Subject: Re: [osg-users] OSG initialisation failure with 1.1.1rc1 + 
NVidia+wxWidgets
 
Hi Gian,

My guess is your viewer was broken with 1.0 but you got lucky, and the
1.1.1-rc1 and NVidia driver just happen to reveal it.

The area to look into is making sure that the graphics context is properly
realized and ready for rendering, before you ever call draw or init.

Robert.

On 8/22/06, Gian Lorenzetto <[EMAIL PROTECTED]> wrote:
>
> Hi Robert,
>
> My gut feel is something to do with the window creation in wxWidgets. The
> weird part is that prior to 1.0 everything worked well.
>
> I have a simple VC++ project, using a wxGLCanvas derived class, that just
> loads and displays the cow model. Compiled against 1.0 it works fine.
> Compiled against 1.1.1rc1 display list creation crashes. Editing the model
> file to set useDispayList to FALSE, the model displays fine.
>
> The weirdest part is that it only crashes on NVIdia hardware ... !?
>
> I'll keep looking into this as I have time and post back any results. I'm
> itching to have a closer look at wxGLCanvas anyway :)
>
> Gian
>
> -----Original Message-----
> From: [EMAIL PROTECTED] on behalf of Robert Osfield
> Sent: Tue 8/22/2006 7:32 PM
> To: osg users
> Subject: Re: [osg-users] OSG initialisation failure with 1.1.1rc1 + NVidia
> +wxWidgets
>
> Hi Gian,
>
> I don't recall any changes with SceneView::init() between 1.0 and
> 1.1.1-rc1.
>
> My guess is that the thread calling sceneview->init() or sceneview->draw()
> doesn't have a valid graphics context for a frame.
>
> FYI, Note that init() will be called automatically the first time that
> draw
> is called - if you don't already call it.  You can also disable the init
> visitor by doing a sceneview->setInitVisitor(0).
>
> Robert.
>
> On 8/22/06, Gian Lorenzetto <[EMAIL PROTECTED]> wrote:
> >
> >  Hi all,
> >
> >
> >
> > There appears to be a bug in the initialisation of OSG when building
> with
> > wxWidgets on NVidia hardware, on Win32.
> >
> >
> >
> > This was discussed in another thread, but I thought I would repost with
> a
> > more representative subject to catch the eye of anyone who may be able
> to
> > help. See the thread "Producer and Win32" for the history of this.
> >
> >
> >
> > When using a wxGLCanvas and SceneView together, adding any geometry to
> the
> > scene using display lists causes either a black screen or a memory fault
> (in
> > my case I believe this relates to texture access during the call to
> > glBindTexture).
> >
> >
> >
> > This has only started happening since moving from 1.0 to 1.1.1rc1 and
> only
> > happens on NVidia hardware, not ATI. The problem stems from the call to
> > camera->accept(.), during the first cull traversal, which triggers the
> > display list construction.
> >
> >
> >
> > The work-around is to call init() on the SceneView **before** adding any
> > geometry. This calls camera->accept(.) before any geometry is added and
> (I
> > assume) somehow changes the processing performed during the first cull
> > traversal. Thanks to JP Delport and Ryan Kawicki for there help and
> > suggested work-around.
> >
> >
> >
> > Perhaps Robert can shed some light on what may have changed in the
> > SceneView initialisation to trigger this issue? Or is anyone aware of an
> > NVidia driver issue that may be related?
> >
> >
> >
> > Thanks,
> >
> > Gian
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users@openscenegraph.net
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> >
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>

<<winmail.dat>>

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to