Hi Farshid, I tried this. This causes the screen to be white again, but the flashing occurs still. I prefer the white, so I'm disappointed that wasn't made an environment variable or something. Right now, I sit around looking at my desktop for 30 seconds while my database loads. And since I'm running my graphics on a networked computer, I don't know if the database is loading or not (if I don't watch for the flashing during the first couple seconds).
Since Producer and OSG are not getting along, I suppose I'm stuck with OSG1.0, until I have time to dig in the code myself. Zach -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farshid Lashkari Sent: Tuesday, November 28, 2006 17:37 To: osg users Subject: Re: [osg-users] Fullscreen flashing Hi Zach, On 11/28/06, Zach Deedler <[EMAIL PROTECTED]> wrote: > When loading a large model/database the screen OSG1.0 used to go white > before it started rendering. Now, it shows a frozen image of the > desktop until it loads with 1.2 and CVS. I'm sure this has to be > related to the flickering. > > I don't see these symptoms when loading the Quake3 video game on the > same computer. (The game shows a white background before rendering) There was a change made in Producer after 1.0 that sets the background brush of the graphics window to NULL. This is what is causing the desktop to show, instead of a white window. However, this change should cause less flickering, since a NULL brush means the background won't be cleared by Windows. Try changing the following line in RenderSurface_Win32.cpp: wndclass.hbrBackground = NULL; back to: wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); -Farshid _______________________________________________ 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/
