Re: [osg-users] Mac OS X windowing system related issue (maybe)
Thank you Stephan, I've tried by executing getWindowingSystemInterface() before opening the settings window but unfortunately it didn't help. On the other hand, I tried to call the viewer's realize() method BEFORE opening the settings window and now it has focus, can be moved and it works as expected...BUT, when the settings window is shown, I also see the viewer's window (fullscreen and filled with white color) just behind the settings window...when I close the latter, the viewer shows my scene normally. This is close to the expected behavior except for the viewer's window 'already' showing behind the settings window (it should be shown only after the user closes the settings windows). I guess that the camera settings window is created as a child of the OSG application window, so it behaves normally only when the application window's creation has completed...don't know. Maybe I should perform only a part of what happens in the realize() method? Regards. Alessandro On Tue, Jun 21, 2011 at 11:40 PM, Stephan Huber ratzf...@digitalmind.de wrote: Hi Alessandro, Am 21.06.11 22:35, schrieb Alessandro Terenzi: If this can help, when I built OSG I chose 'Carbon' as windowing system, I built OSG as frameworks and I'm building my OSG application as a console application. If I build my application as an app bundle (instead of a try creating the WindowSystemInterface via osg::GraphicsContext::getWindowingSystemInterface() before opening the settings-dialog. the WindowingSystemInterface does some fancy things, so that windows opened by a console-app work correctly. Perhaps that helps. cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Mac OS X windowing system related issue (maybe)
Thank you Stephan, I've tried by executing getWindowingSystemInterface() before opening the settings window but unfortunately it didn't help. On the other hand, I tried to call the viewer's realize() method BEFORE opening the settings window and now it has focus, can be moved and it works as expected...BUT, when the settings window is shown, I also see the viewer's window (fullscreen and filled with white color) just behind the settings window...when I close the latter, the viewer shows my scene normally. This is close to the expected behavior except for the viewer's window 'already' showing behind the settings window (it should be shown only after the user closes the settings windows). I guess that the camera settings window is created as a child of the OSG application window, so it behaves normally only when the application window's creation has completed...don't know. Maybe I should perform only a part of what happens in the realize() method? Regards. Alessandro -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40730#40730 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Mac OS X windowing system related issue (maybe)
I finally managed to solve the issue: I called setUpViewAcrossAllScreens() before opening the settings window. What does setUpViewAcrossAllScreens do? Cheers. Alessandro -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=40735#40735 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Mac OS X windowing system related issue (maybe)
Hi Alessandro, Am 21.06.11 22:35, schrieb Alessandro Terenzi: If this can help, when I built OSG I chose 'Carbon' as windowing system, I built OSG as frameworks and I'm building my OSG application as a console application. If I build my application as an app bundle (instead of a try creating the WindowSystemInterface via osg::GraphicsContext::getWindowingSystemInterface() before opening the settings-dialog. the WindowingSystemInterface does some fancy things, so that windows opened by a console-app work correctly. Perhaps that helps. cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org