[osg-users] setUpViewInWindow fails to create graphics context if laptop not docked
I'm working on a 3D simulation project that runs like a dream on my boss's desktop and on my laptop when it is docked and has my two work monitors connected. However, I decided to work from home today so tried to run the project on the laptop without the dock. Before I left work yesterday this program was running great. I get up today and try to run it and it crashes due to a lack of graphics context. The error message I get is No matching pixel format found based on traits specified. Please note that I did not recompile the program at all nor did I make any changes to anything when I tried to run the program from home. To further add to my confusion the included osgviewer runs perfectly. I thought I'd put this out here while I set up to run with more debug output and sifted through that. I'll add that output as soon as I have it. Thanks, all! soulsabr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52835#52835 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] setUpViewInWindow fails to create graphics context if laptop not docked
The call to setNumMultiSamples is the culprit. When I was working yesterday the multisample number was set at 16 and worked fine. Today, after I found I was having an issue, I started moving the call to realize and run the viewer down the setup routine to see what might be causing the failure. Turns out that the laptop doesn't like a sample of 16 when not docked though 2, 4, and 8 work just fine. It seems odd to me that simply removing two monitors with the same resolution as the laptop's screen would cause an issue. It also seems odd that multisampling doesn't work for the higher number (but I don't know anything about how it is handled) but works for a lower number. I would have guessed that a higher number would only cause the program to run slower. Anyhow, I think I can mark this solved but thought somebody might be interested in the cause. Thanks. soulsabr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52836#52836 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] setUpViewInWindow fails to create graphics context if laptop not docked
Is this a hybrid laptop that has both an NVidia and an Intel graphics chipset/ When un-docked, it may be switching back to the Intel by default. On Sat, Feb 23, 2013 at 9:33 AM, Joshua Cook countryartis...@gmail.comwrote: The call to setNumMultiSamples is the culprit. When I was working yesterday the multisample number was set at 16 and worked fine. Today, after I found I was having an issue, I started moving the call to realize and run the viewer down the setup routine to see what might be causing the failure. Turns out that the laptop doesn't like a sample of 16 when not docked though 2, 4, and 8 work just fine. It seems odd to me that simply removing two monitors with the same resolution as the laptop's screen would cause an issue. It also seems odd that multisampling doesn't work for the higher number (but I don't know anything about how it is handled) but works for a lower number. I would have guessed that a higher number would only cause the program to run slower. Anyhow, I think I can mark this solved but thought somebody might be interested in the cause. Thanks. soulsabr -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52836#52836 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android @alphapixel https://twitter.com/alphapixel facebook.com/alphapixel (775) 623-PIXL [7495] ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org