I think in order to do XORed drawing, you'd need to be in a single-buffered situation. Are you?
If you are, you should be able to setup a HUD-like transform and draw using pixel coordinates. On Tue, Sep 24, 2013 at 1:57 PM, Andrew Cunningham <[email protected]> wrote: > Hi, > This is an old one, that seemingly no-one has a solution for.... > > I am having problems on W7/W8 when "aero" is active in our MFC/OGL(OSG) > based CAE style application. > > 1) MFC CSplitterWnd resizing leaves 'window garbage' behind > 2) How to draw an rubber-banding zoom box (using XOR operations) on the > OpenGL window - we were using GDI, of course this is a no-no now. > > We have to advise the user to revert to Windows 7/8 basic theme. Of course > they never read the release notes, so support gets the call.... > > I was wondering how to resolve 2) using OSG. I suppose it's a HUD type > problem. I want to draw over the existing rendered scene without requiring > the underlying scene to be re-rendered. It quite simple to do a XOR'd > rectangle using gl* calls in screen coordinates, but I'm at a loss how to > integrate that into an OSG scene. > > Thank you! > > Cheers, > Andrew > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=56471#56471 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android @alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775) 623-PIXL [7495]
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

