Hi Guys,

Have you seen last post from Farshid Lashkari in Re: [osg-users] Problem with samples thread ?

<Start Quote>
I've also been experiencing the fullscreen issue with nVidia cards on Windows 7. Just wanted to let you know that I found a workaround. When creating the OpenGL context, I changed the swap method from WGL_SWAP_EXCHANGE_ARB to WGL_SWAP_COPY_ARB. This completely solved the issue for me.
Hopefully nVidia will fix their drivers in a future release.
Farshid
<End Quote>

IMHO He has found the workaround and but also the source of the problem. I just checked his solution and it simply works. So I think that with Aero DWM not having front buffer but internal Direct3D texture, its quite understandable why COPY works better than EXCHANGE. Its hard to understand though why NvIdia drivers suggest EXCHANGE in ChoosePixelFormat when it does not work correctly. Btw I checked with DescribePixelFormat if the returned PixelFormat is compatible with PFD_SUPPORTS_COMPOSITION . And yes, returned description structure reports this compatibility. So this whole issue looks weird and definitely points to the drivers as the source of the problem. The drivers have the option to return PixelFormat with SWAP_COPY method but it keeps returning SWAP_EXCHANGE.

Regards,
Wojtek


--------------------------------------------------
From: "Martin Naylor" <martinnay...@virginmedia.com>
Sent: Friday, September 24, 2010 2:11 PM
To: "'OpenSceneGraph Users'" <osg-users@lists.openscenegraph.org>
Subject: Re: [osg-users] Windows 7 Aero Color Scheme issue

Hi Magnus,
Not sure about the answer to your question.
But I believe this to be fixed in the latest NVidia Beta driver(well for my
single screen anyway).
I did look at the code and my brain went numb trying to find a fix.
Might be worth trying the latest beta drivers see if it still occurs?

Regards

Martin.





-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Magnus
Kessler
Sent: 24 September 2010 06:43
To: OpenSceneGraph Users
Subject: Re: [osg-users] Windows 7 Aero Color Scheme issue

On Thursday 08 July 2010, Martin Naylor wrote:
Hi,
Yeah its certainly Aero...
I two have the same issue, disabling Aero sorts its out, but mine is on a
single screen.
Alt-Tab will make it work as well.
Have a look here http://www.opengl.org/pipeline/article/vol003_7/

Are we using GDI? I don't understand the viewer code, I might have
another attempt later...
http://bugreports.qt.nokia.com/browse/QTBUG-6988 might of interest.

This what I posted a while back:
I did mention this a while back about osgShadow.
All my are examples do this now after installing a new Nvidia GTX 480
card(from a gtx 9800), with the latest drivers from Nvidia.
My guess you are running Windows Vista/7, try alt tab?
For a permanent fix disable the pesky Aero desktop!
I tried looking for a fix last night and its something to do with
swapbuffers either being called or not, I cannot remember it was late and
the viewer code was baffling me!
Ok it might be

Never found a fix, i have looked into the viewer code, but never got to
the bottom of it.


Martin.



I made an interesting observation recently. One and the same code
(essentially osgviewer) showed the black screen when starting up in the
automatically chosen "DrawThreadPerContext" threading mode, but worked fine
when "SingleThreaded" was forced. What is different in the way the OpenGL
context is created in these two cases?

Magnus
_______________________________________________
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

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to