Re: [osg-users] Overriding the SwapBuffers call

2008-02-16 Thread Jean-Sébastien Guay
Hello André, This looks fine. Try setting a breakpoint in GraphicsWindowWin32::swapBuffersImplementation() to see in what state the object is. Either _realized is false or the handle to the device context is invalid (and this is not trapped by the ::SwapBuffers call as an error). I'll try

Re: [osg-users] Overriding the SwapBuffers call

2008-02-16 Thread André Garneau
values you use in the traits structure, etc.) that would likely be helpful. André -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay Sent: February-16-08 8:30 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Overriding the SwapBuffers

Re: [osg-users] Overriding the SwapBuffers call

2008-02-15 Thread Robert Osfield
HI J-S, Simply assign your custom GraphicsWindow implementation to the viewer's osg::Camera's directly, rather than rely upon View::setUpView*() methods. Robert. On Fri, Feb 15, 2008 at 3:27 PM, Jean-Sébastien Guay [EMAIL PROTECTED] wrote: Hello Robert et al, I have a very specific

Re: [osg-users] Overriding the SwapBuffers call

2008-02-15 Thread André Garneau
To: OpenSceneGraph Users Subject: Re: [osg-users] Overriding the SwapBuffers call Hi Robert, Windows gurus, Simply assign your custom GraphicsWindow implementation to the viewer's osg::Camera's directly, rather than rely upon View::setUpView*() methods. I've gotten this to work partially. My

Re: [osg-users] Overriding the SwapBuffers call

2008-02-15 Thread Jean-Sébastien Guay
Hi again, Am I missing anything? As I said, the prints are in the console, but the screen stays black. After further investigation, pressing 's' to display the stats displays them, but they don't get cleared so they just draw overtop the old image. Seems some clearing is not happening, in

Re: [osg-users] Overriding the SwapBuffers call

2008-02-15 Thread Jean-Sébastien Guay
Hi Robert, Windows gurus, Simply assign your custom GraphicsWindow implementation to the viewer's osg::Camera's directly, rather than rely upon View::setUpView*() methods. I've gotten this to work partially. My method is getting called, but I get only black onscreen. My overridden

Re: [osg-users] Overriding the SwapBuffers call

2008-02-15 Thread Jean-Sébastien Guay
Hello André, Looks like the constructor of the base class (GraphicsWindowWin32) is not being called by your derived class (_realized is false). Here is my whole class (no joke!): class MyGraphicsWindowWin32 : public osgViewer::GraphicsWindowWin32 { public: MyGraphicsWindowWin32

Re: [osg-users] Overriding the SwapBuffers call

2008-02-15 Thread André Garneau
you do not see anything reported on the console after the call (other than you own traces). André -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Sébastien Guay Sent: February-15-08 7:21 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Overriding