Mike, Yeah, I do specify PFD_DOUBLEBUFFER in the pixel format descriptor. It just appears to me that the render context is not being set (or transferred to the osgViewer object) correctly for some reason. I do use the 'inheritedWindowData' property of the GraphicsContext::Traits as in the osgviewerMFC example. This may not be the case at all, but it certainly has that "feel".
Thanks. chuck > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Hartman, Michael W. (MSFC- > NNM06AA05Z)[PEOPLETEC] > Sent: Monday, June 11, 2007 9:42 AM > To: osg users > Subject: RE: [osg-users] Problems converting from SceneView to osgViewer > > Charles, > > Did you make sure that you specified Double Buffer on the Pixel > Description for your window that you are trying to render to? To see > how to do this, please look at osgviewerMFC -> MFC_OSG.cpp -> class > instantiation function. > > Let me know if this helps. > > Mike Hartman > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Cole, Charles > E. (LARC-B702)[GENEX SYSTEMS] > Sent: Monday, June 11, 2007 8:28 AM > To: osg users > Subject: [osg-users] Problems converting from SceneView to osgViewer > > I'm having a hard time converting my existing application from OSG v.1.2 > to v.1.9.x/2.0. I use my own rendering window and have previously used > the SceneView class for handling the rendering. So, what I'm trying to > do is convert my current implementation to use the osgViewer class. > Unfortunately, this has become a more difficult task than I had > envisioned. > > I've gone through the examples, specifically the osgviewer examples, and > for reasons that I haven't been able to trace down yet, I haven't been > able to produce a proper view with the osgViewer class. The most > applicable example in my case is the osgviewerMFC example, and when I > replicate that as much as possible, all I get is a window with the blue > background (and strobes like a buffer swapping issue). I fear that > there is just something simple that I'm missing (as is the usually the > case), but I can't for the life of me spot what it is. I was hoping > that the weekend off would help me with this, but no such luck. :-( > > On the FAQ page, there's an example of how to use the osgUtil::SceneView > class to render OSG in an existing window > (http://www.openscenegraph.com/osgwiki/pmwiki.php/FAQ/FAQ#faq_34). My > code is almost identical to that provided in this FAQ. I've been unable > to find something similar for using osgViewer. So, my question is, is > there a similar "how-to" at this point for using the new osgViewer class > in this way? Or is there any advice that someone can give me on my > conversion? > > I realize that much of the effort now is focusing on getting v.2.0 > ready, so any help with this issue would be greatly appreciated. > Thanks. > > chuck > > _____________________________________ > Charles E. Cole (Chuck), ConITS Team > 130 Research Drive > Hampton, VA 23666 > E-mail: [EMAIL PROTECTED] > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
