Yeah, I call it before initialising the scene graph and before rendering. There seems to be a valid graphics context as geometry (including textures) drawn in immediate mode work fine.
I've also moved to using the OnIdle handler to generate calls to the render method, but don't think that would be interfering ... Are you using OSG with wxGLCanvas currently? I've been avoiding using Producer due to the extra dependency and complexity, but it does have some very nice features. I'd be interested in hearing what other wxWidgets users are doing ... Thanks, Gian -----Original Message----- From: [EMAIL PROTECTED] on behalf of J.P. Delport Sent: Fri 8/18/2006 6:41 PM To: osg users Subject: Re: [osg-users] Producer and Win32 Hi, I've had some funnies with the wx SetCurrent() call. Are you calling this before the first frame? jp Gian Lorenzetto wrote: > Hi all, > > > > Since moving from 1.0 to 1.1.1rc1 I have a problem relating to the > current graphics context using a wxWidgets wxGLCanvas (on Win32). > > > > All display lists created before the first update/cull/draw the > application fail, resulting in a black screen. Further, if the display > list includes textures, the application crashes on the call to > glBindTexture with a memory access violation. > > > > If I add objects to the scene after the first update/cull/draw, > everything is fine. Also, objects that are not compiled into display > lists render correctly (I have checked the first frame is OK). > > > > For a sanity check, I have built a test application that uses Producer > to render and everything works fine. After much debugging the key seems > to be the way Producer creates a TemporaryWindow during the call to > realize(). Not being a win32 guru (yeah for me J) I'm at a bit of a loss > as to why the context creation in the wxGLCanvas worked in 1.0 but now > fails with 1.1.1rc1. > > > > Any windows/producer people out there have any ideas? Any one else using > a wxGLCanvas/SceneView together without problem? > > > > Is Producer the way to escape cross platform madness wrt graphics contexts? > > > > Any help or pointers appreciated, > > Gian > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
<<winmail.dat>>
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
