From: Jeff M. <jm...@ya...> - 2003-04-10 04:50:40
|
I'll try it tomorrow. Thanks. - Jeff ----- Original Message ----- From: <ll...@ga...> To: "Jeff Ma" <jm...@ya...> Cc: <csg...@li...> Sent: Wednesday, April 09, 2003 8:04 PM Subject: Re: [Csgl-users] multi-monitor support > just a quick though .. > what about doing the OpenGL drawing to a Bitmap, and then display the > bitmap (in an ImageBox ...) ? > there is a sample showing how to draw to a bitmap here: > <csgl>/examples/CS/drawimage.cs > > it's a bit slower than direct drawing though ... > what do you think ? > > On Thursday, April 10, 2003, at 11:26 AM, Jeff Ma wrote: > > > I have one graphics card with two monitors. > > > > The problem is not related to csgl. It is OpenGL problem (thanks to > > Trent > > M.) OpenGL hw accelaration doesn't support multi-monitor. I tried Nehe > > sample (C++/OGL), same problem: runs fine on 1st monitor, no update on > > 2nd > > monitor. See opengl.org faq: > > http://www.opengl.org/developers/faqs/technical/mswindows.htm#mswi0100. > > > > A software pixel format may solve this problem. But Microsoft's generic > > pixel format also has bugs, it doens't draw correctly on child windows > > w/ > > double-buffer when resized, see > > http://support.microsoft.com/default.aspx?scid=kb;EN-US;272222. Plus > > software is slow. > > > > One promising solution is: > > http://support.microsoft.com/default.aspx?scid=kb;EN-US;272221: OpenGL > > renders to a DIB section (device-independent bitmap) and then blt to > > the > > window. The GLDib example runs fine on my two monitors and hw > > accelerated. I > > am not sure how difficult it is to add DIB support to Lloyd's code. > > > > Multi-monitor is very popular in the investment industry that I am > > writing > > code for. > > > > Jeff Ma > |