I'm running on Redhat Linux: $ uname -a Linux cavs 2.6.18-92.1.22.el5PAE #1 SMP Fri Dec 5 09:58:49 EST 2008 i686 i686 i386 GNU/Linux
My video card is an NVIDIA GeForce 9600 GT, here is some driver information from my X log: NVIDIA GLX Module 173.14.12 Thu Jul 17 18:36:35 PDT 2008 NVIDIA dlloader X Driver 173.14.12 Thu Jul 17 18:15:54 PDT 2008 NVIDIA Unified Driver for all Supported NVIDIA GPUs Here is the rest of the NVidia related output from my X log (just in case it is useful): (--) Chipset NVIDIA GPU found (II) Module wfb: vendor="NVIDIA Corporation" (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32 (==) NVIDIA(0): RGB weight 888 (==) NVIDIA(0): Default visual is TrueColor (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0) (**) NVIDIA(0): Enabling RENDER acceleration (II) NVIDIA(0): Support for GLX with the Damage and Composite X extension is (II) NVIDIA(0): enabled. (II) NVIDIA(0): NVIDIA GPU GeForce 9600 GT (G94) at PCI:8:0:0 (GPU-0) (--) NVIDIA(0): Memory: 524288 kBytes (--) NVIDIA(0): VideoBIOS: 62.94.11.00.02 (II) NVIDIA(0): Detected PCI Express Link width: 16X (--) NVIDIA(0): Interlaced video modes are supported on this GPU (--) NVIDIA(0): Connected display device(s) on GeForce 9600 GT at PCI:8:0:0: (--) NVIDIA(0): DELL 1907FP (CRT-0) (--) NVIDIA(0): DELL 1907FP (CRT-0): 400.0 MHz maximum pixel clock (II) NVIDIA(0): Assigned Display Device: CRT-0 (II) NVIDIA(0): Validated modes: (II) NVIDIA(0): "1280x1024" (II) NVIDIA(0): "1280x960" (II) NVIDIA(0): "1280x800" (II) NVIDIA(0): "1152x864" (II) NVIDIA(0): "1024x768" (II) NVIDIA(0): "800x600" (II) NVIDIA(0): "800x600" (II) NVIDIA(0): "640x480" (II) NVIDIA(0): "640x480" (II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024 (--) NVIDIA(0): DPI set to (85, 86); computed from "UseEdidDpi" X config (--) NVIDIA(0): option (==) NVIDIA(0): Disabling 32-bit ARGB GLX visuals. (II) NVIDIA(0): Initialized GPU GART. (II) NVIDIA(0): Setting mode "1280x1024" (II) Loading extension NV-GLX (II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized (II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture (==) NVIDIA(0): Backing store disabled (==) NVIDIA(0): Silken mouse enabled (**) NVIDIA(0): DPMS enabled (II) Loading extension NV-CONTROL Akex -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Robert Osfield Sent: Friday, June 19, 2009 1:15 AM To: OpenSceneGraph Users Subject: Re: [osg-users] How to test for anti-alias support Hi Alex, What OS, Hardware, drivers are you using? Robert. On Thu, Jun 18, 2009 at 8:24 PM, Pecoraro, Alexander N<[email protected]> wrote: > Is there a different or better way to test for anti-aliasing support than to > just call osg::DisplaySettings::instance()->setNumMultiSamples() repeatedly > with smaller and smaller values, which doesn't seem to work for me anyway > (so hopefully the answer is yes). I tried to have it set the number of multi > samples and then call realize() on the viewer and if it failed to realize I > have it try a smaller value for number of samples. What ends up happening is > that it starts at 8, fails, then tries 4, which I know is supported by my > video card so it should work and it appears to work, but the window opens > and it is just black and nothing seems to render to it. So I'm wondering if > my way of checking for anti-aliasing support is wrong. Here is the debug > output from my attempts to make this work: > > > > Setting anti-aliasing samples to: 8 > > GraphicsContext::registerGraphicsContext 0x8e4ff20 > > Relaxing traits > > Error: Not able to create requested visual. > > close(1)0x8e4ff20 > > close(0)0x8e4ff20 > > GraphicsContext::unregisterGraphicsContext 0x8e4ff20 > > Viewer::realize() - No valid contexts found, setting up view across all > screens. > > GraphicsContext::getWindowingSystemInterface() 0x8e4c030 0x102ee20 > > GraphicsContext::registerGraphicsContext 0x8e51e28 > > Relaxing traits > > Error: Not able to create requested visual. > > close(1)0x8e51e28 > > close(0)0x8e51e28 > > GraphicsContext::unregisterGraphicsContext 0x8e51e28 > > GraphicsWindow has not been created successfully. > > Viewer::realize() - failed to set up any windows > > > > Trying anti aliasing samples at 4 > > Viewer::realize() - No valid contexts found, setting up view across all > screens. > > GraphicsContext::getWindowingSystemInterface() 0x8e4c030 0x102ee20 > > GraphicsContext::registerGraphicsContext 0x8e51e28 > > GraphicsContext::getWindowingSystemInterface() 0x8e4c030 0x102ee20 > > GraphicsContext::createNewContextID() creating contextID=0 > > Updating the MaxNumberOfGraphicsContexts to 1 > > GraphicsWindow has been created successfully. > > X window successfully opened > > > > So even though it appears that the "GraphicsWindow has been created > successfully", my app is not able to render anything into the window. The > funny thing is that if I start with a number of multi-samples value of 4 > then everything works fine. Its only if I first test the realize() with a > multi-samples value that is not supported by my card that makes subsequent > valid multi-samples values not work. > > > > Any advice for how to fix this? > > > > Thanks. > > > > Alex > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

