You needn't use RenderSurface to render into a MFC window, you can simply create the graphics context yourself and use SceneView. The osgsimple, osgkeyboardmouse, osgGLUTsimple and osgGLUTkeyboardmouse examples all written to illustrate what you need to put together to render with the OSG, while this examples arn't MFC examples, the windowing code in them is kept to a minimum so you should be able to work out how to replace the relevant windowing API calls with your own.
Robert.
On 9/13/06, Argentieri, John-P63223 <[EMAIL PROTECTED]> wrote:
Hello All.
I am having some difficulty getting osg to draw to a CView MFC window. I set the rendersurface to the HWND of the CView window in the same way it is done for a Win32 window, but the image is corrupted when I do so. Once I do any resizing of the window it disappears completely. This code that I am trying to use draws into a typical Win32 window just fine. I have searched around and not seen many comments that have helped. There is an example out there that uses OSG 0.9.x that I will examine further, but I thought it would be worthwhile to ask.
Thanks,
John
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
