Re: [osg-users] WPF and OpenGL popup window problem

2009-03-07 Thread Jean-Sébastien Guay

Hi Himar,

W.r.t. whether you are fool to use WPF or Qt or wxWidgets or 
whatever windowing technology you use: They are tools, you as programmer 
are the artisan.


Sorry if it looked as if I were trying to imply anyone was a fool, 
that's not the case. I have used this same argument a lot in the past 
(and in the recent past on this very mailing list) hence the smiley at 
the end of my sentence... :-)  It was meant as a joke.


Thanks for the concrete info on this issue, it's useful to know about 
these issues.


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


Re: [osg-users] WPF and OpenGL popup window problem

2009-03-06 Thread Himar Carmona
Hi,

i also use WPF, you are not the only one. The problem in WPF is surely
the airspace. In WPF you can't have in the same window overlapping
technologies. And if the window is a popup window, if it has transparency
activated, you will also experiment the same problem (but this time
it depends on the graphics card). This is a issue in Windows XP, not in
Windows Vista. This is due to the windowing management.

Windows XP has also a problem with transparent windows (overlay) for a
long time ago, since it was not thought to render transparent windows (where
the color of a pixel depends on more than one window). I think tooltips are
window (like menu, context menu and so on), and the tooltip has transparency
activated.

W.r.t. whether you are fool to use WPF or Qt or wxWidgets or whatever
windowing technology you use: They are tools, you as programmer are the
artisan. I would choose the best to the project in hands. All have problems
and limitations and different design philosophies, and... the list is long
enough to be discussed ad limitum. Really, evangelism is the problem. Open
Mind the solution. (My apologies to everyone, i'm not good writing english,
and i don't want to offend anyone, this is just a personal point of view).
Just kidding a bit...

  Thank you all the OSG community, i think all of you are open minders.

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


Re: [osg-users] WPF and OpenGL popup window problem

2009-03-05 Thread Brede Johansen
Hi Brian,

What you describe sounds like the WPF airspace limitation described here
http://msdn.microsoft.com/en-us/library/aa970688.aspx.  The short version is
that each pixel can only belong to one render technology (WPF, DirectX,
Win32 OpenGL).
A workaround is to render your OSG scene off screen and give the bitmap to
WPF.

Brede

On Wed, Mar 4, 2009 at 11:49 PM, Brian Stewart osgfo...@tevs.eu wrote:

 Hi,

 I have developed an application where I have an OSG window embedded in a
 windows application built with WPF. On certain Geforce cards there seems to
 be a bug where WPF popup windows (like menus) that have AllowTransparency
 set to true do not draw correctly over my OSG window. Basically whenever the
 OSG/OpenGL window updates, it overwrites all overlapping pixels, even if the
 popup is higher in the window manager's Z-order. I have isolated it to an
 issue with the OpenGL driver. It only occurs on Geforce cards, not Quadro
 cards (which is not surprising, since I've read the Geforce cards were
 optimized for DirectX). I'm not so much looking for a fix (though one would
 be welcome) - I'm just wondering if anyone else has encountered this. I have
 already filed a bug report with nvidia, and it might help if I could report
 that others are having issues with it too (or maybe I really am the only
 person out there foolish enough to try this). If anyone is interested, I can
 supply a small
  test project that uses WPF and OpenGL together to demonstrate the problem.

 Thanks!

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





 ___
 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] WPF and OpenGL popup window problem

2009-03-05 Thread Peter Amstutz
I have a similar problem to the one described here, although with 
Windows Forms rather than WPF.  Whenever my application renders a 
tooltip which overlaps the OSG window, the tooltip gets cut off on the 
next OSG frame.  I've spent hours trying to find any information about 
how to work around the problem, but have drawn a blank.  This seems to 
mainly be a problem on Windows XP; the systems with Vista I have tried 
do not exhibit this problem.  I can't speak to whether different 
hardware/drivers have different behavior, though.


Peter

Brede Johansen wrote:

Hi Brian,

What you describe sounds like the WPF airspace limitation described 
here http://msdn.microsoft.com/en-us/library/aa970688.aspx.  The short 
version is that each pixel can only belong to one render technology 
(WPF, DirectX, Win32 OpenGL).
A workaround is to render your OSG scene off screen and give the 
bitmap to WPF.


Brede

On Wed, Mar 4, 2009 at 11:49 PM, Brian Stewart osgfo...@tevs.eu wrote:

Hi,

I have developed an application where I have an OSG window
embedded in a windows application built with WPF. On certain
Geforce cards there seems to be a bug where WPF popup windows
(like menus) that have AllowTransparency set to true do not draw
correctly over my OSG window. Basically whenever the OSG/OpenGL
window updates, it overwrites all overlapping pixels, even if the
popup is higher in the window manager's Z-order. I have isolated
it to an issue with the OpenGL driver. It only occurs on Geforce
cards, not Quadro cards (which is not surprising, since I've read
the Geforce cards were optimized for DirectX). I'm not so much
looking for a fix (though one would be welcome) - I'm just
wondering if anyone else has encountered this. I have already
filed a bug report with nvidia, and it might help if I could
report that others are having issues with it too (or maybe I
really am the only person out there foolish enough to try this).
If anyone is interested, I can supply a small
 test project that uses WPF and OpenGL together to demonstrate the
problem.

Thanks!

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
mailto: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] WPF and OpenGL popup window problem

2009-03-05 Thread Jean-Sébastien Guay

Hi Brian,


(or maybe I really am the only person out there foolish enough to try this).


Well, maybe the only person foolish enough to use WPF :-)

We're using Qt in conjunction with OSG, and the Qt menus and dialogs 
draw correctly over our OSG QWidget. We even have a button overlapping 
the OSG window and it works fine, no flickering or anything. We're also 
using GeForce (mostly 8800, 9800) cards btw, not Quadro.


This doesn't help you much, but at least you know it /could/ work, 
there's just something in how WPF does things that is making it not work 
for you.


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


[osg-users] WPF and OpenGL popup window problem

2009-03-04 Thread Brian Stewart
Hi,

I have developed an application where I have an OSG window embedded in a 
windows application built with WPF. On certain Geforce cards there seems to be 
a bug where WPF popup windows (like menus) that have AllowTransparency set to 
true do not draw correctly over my OSG window. Basically whenever the 
OSG/OpenGL window updates, it overwrites all overlapping pixels, even if the 
popup is higher in the window manager's Z-order. I have isolated it to an issue 
with the OpenGL driver. It only occurs on Geforce cards, not Quadro cards 
(which is not surprising, since I've read the Geforce cards were optimized for 
DirectX). I'm not so much looking for a fix (though one would be welcome) - I'm 
just wondering if anyone else has encountered this. I have already filed a bug 
report with nvidia, and it might help if I could report that others are having 
issues with it too (or maybe I really am the only person out there foolish 
enough to try this). If anyone is interested, I can supply a small 
 test project that uses WPF and OpenGL together to demonstrate the problem. 

Thanks!

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





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