Re: [osg-users] Windows 7 Aero Color Scheme issue

2010-09-24 Thread Martin Naylor
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


Re: [osg-users] Windows 7 Aero Color Scheme issue

2010-09-24 Thread Wojciech Lewandowski

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


Re: [osg-users] Windows 7 Aero Color Scheme issue

2010-09-23 Thread Magnus Kessler
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


Re: [osg-users] Windows 7 Aero Color Scheme issue

2010-07-08 Thread Serge Lages
Hi,

I have this problem with all my applications, but haven't found time to
investigate, currently our solution is to disable Aero...

Cheers,

On Thu, Jul 8, 2010 at 6:01 AM, Prakhar Jain mindfields@gmail.comwrote:

 I am also having the same problem with osgviewer. However I dont get this
 problem when I run my own osg application.


 Thanks,
 Prakhar


 On Thu, Jul 8, 2010 at 3:14 AM, Guy Volckaert 
 guy.volcka...@meggitt.comwrote:

 I'm having the same problem on my laptop (single screen). When I launch
 the osgViewer application, the screen gets rendered for  1 frame and then
 the entire window becomes black. If I use ALT-TAB to cycle back and forth,
 then the scene gets rendered correctly.

 As you mentioned, it's very irritating.

 I was wondering if anyone looked into this since?

 Cheers,
 Guy

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=29807#29807





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




 --
 -
 Prakhar Jain,
 IIT Delhi,
 New Delhi - 110016
 mindfields@gmail.com
 voice +919899520167

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




-- 
Serge Lages
http://www.tharsis-software.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Windows 7 Aero Color Scheme issue

2010-07-08 Thread Martin Naylor
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.


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason
Beverage
Sent: 08 July 2010 14:47
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Windows 7 Aero Color Scheme issue

I have the same issue on Vista, but only on one of my monitors and
only if I run full screen.  Starting osgviewer with a --window
argument works fine.  My 1920x1080 monitor causes the issue in full
screen, I have another 1680x1050 monitor that works fine in full
screen.

Jason

On Thu, Jul 8, 2010 at 9:26 AM, Guy Volckaert guy.volcka...@meggitt.com
wrote:
 As maximuxy, I also don't have this problem with my own application (so
far).

 Cheers,
 Guy

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=29827#29827





 ___
 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


Re: [osg-users] Windows 7 Aero Color Scheme issue

2010-07-07 Thread Guy Volckaert
I'm having the same problem on my laptop (single screen). When I launch the 
osgViewer application, the screen gets rendered for  1 frame and then the 
entire window becomes black. If I use ALT-TAB to cycle back and forth, then the 
scene gets rendered correctly. 

As you mentioned, it's very irritating. 

I was wondering if anyone looked into this since?

Cheers,
Guy

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29807#29807





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


[osg-users] Windows 7 Aero Color Scheme issue

2009-12-01 Thread Mark Jones
I've been working with osgprender, ran into a camera issue and am trying some 
things to see if I can work out a solution.

As part of that, I found the --screen option in the viewer and set it to -- 
screen 0.  While debugging it exhibits some strange behavior on my dual screen 
nVidia setup.

1. When starting from the debugger, the image will appear for a moment, then 
vanish with --screen 0  but not with --screen 1.  With --screen 1 the 
image shows up and stays up, with --screen 0  I have to use Alt tab to find 
the window to get it to redisplay.

2. When starting from the debugger, with --screen 0, Win7 will pop up a  
message that says the color scheme has been changed because this application is 
NOT compatible with Aero.  When running with --screen 1, this doesn't happen, 
no error message appears.

3. When I don't use the --screen option, it uses both screens just fine, and 
there is no warning message.

In both cases, the program appears to work just fine, except for those two 
quirks.  I'm not sure if the bug is osg, opengl, or nvidia drivers


OSG 2.8.2
Win7 Enterprise 64bit

nVidia details:

 
 NVIDIA System Information report created on: 12/01/2009 10:03:51
 
 [Display]
 Processor:Intel(R) Core(TM) i7 CPU 920  @ 2.67GHz (2665 
 MHz)
 Operating System: Windows 7 Enterprise, 64-bit
 DirectX version:  11.0 
 GPU processor:GeForce 9600 GT
 Driver version:   191.07
 Stream processors:64 
 Core clock:   725 MHz 
 Shader clock: 1850 MHz
 Memory clock: 975 MHz (1950 MHz data rate) 
 Memory interface: 256-bit 
 Total available graphics memory:  3327 MB
 Dedicated video memory:   512 MB
 System video memory:  0 MB
 Shared system memory: 2815 MB
 Video BIOS version:   62.94.11.00.14
 IRQ:  16
 Bus:  PCI Express x16 Gen2
 
 [Components]
 
 nvCpl.cpl 2.7.170.15  NVIDIA Control Panel Applet
 nvCplUI.exe   2.7.170.15  NVIDIA Control Panel
 nvWSS.dll 8.16.11.9107NVIDIA Workstation Server
 nvViTvS.dll   8.16.11.9107NVIDIA Video and TV Server
 NVSTVIEW.EXE  7.16.11.9107NVIDIA GeForce 3D Vision
 NVSTTEST.EXE  7.16.11.9107NVIDIA 3D Vision Test 
 Application
 NVSTRES.DLL   7.16.11.9107NVIDIA 3D Vision Module  
 (4743138)
 NVMCTRAY.DLL  8.16.11.9107NVIDIA Media Center Library
 nvDispS.dll   8.16.11.9107NVIDIA Display Server
 NVCPL.DLL 8.16.11.9107NVIDIA Compatible Windows7 
 Display driver, Version 191.07 
 PhysX 09.09.0814  NVIDIA PhysX
 NVCUDA.DLL8.16.11.9107NVIDIA CUDA 2.3 driver
 nvGameS.dll   8.16.11.9107NVIDIA 3D Settings Server
 


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=20674#20674




Attachments: 
http://forum.openscenegraph.org//files/capture_170.png


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


Re: [osg-users] Windows 7 Aero Color Scheme issue

2009-12-01 Thread Jean-Sébastien Guay

Hi Mark,


1. When starting from the debugger, the image will appear for a moment, then vanish with --screen 0  but 
not with --screen 1.  With --screen 1 the image shows up and stays up, with --screen 
0  I have to use Alt tab to find the window to get it to redisplay.

2. When starting from the debugger, with --screen 0, Win7 will pop up a  message that 
says the color scheme has been changed because this application is NOT compatible with Aero.  When 
running with --screen 1, this doesn't happen, no error message appears.

3. When I don't use the --screen option, it uses both screens just fine, and 
there is no warning message.


I reported this behavior a while ago (probably about 2 years ago - check 
the archives) on Windows Vista. No one (including me) ever had the 
inclination to try and find the source of the problem... I've always 
assumed it was some weird Vista quirk. Now we can call it a weird 
Vista/7 quirk :-)


It's not really that problematic, just a little irritating. I always 
start up fullscreen OSG applications on screen 1 anyways. But if it 
irritates you enough, you could want to scratch the itch and investigate 
further...


Sorry I can't be more helpful,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org