I have an MFC application with tow CView, I would like to use osg in those view to manipulate the display model with MFC window.
I am a complete beginner with OSG and after a long time of research I still don’t fin the way to do it.
Should I resize my osg window and put it over the CView or make the osg as child of the CView?
And how to do it?
Please give me some tips or some indication on what should I look for.
An example will be the best.
Thank you
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17823#17823
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
// Setup the traits parameters
traits->x = 0;
traits->y = 0;
traits->width = rect.right - rect.left;
traits->height = rect.bottom - rect.top;
traits->windowDecoration = false;
traits->doubleBuffer = true;
traits->sharedContext = 0;
traits->setInheritedWindowPixelFormat = true;
traits->inheritedWindowData = windata;
but I change it and nothing hapen
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17838#17838
no I do not us osg::DIsplaySetting.
but as I didn't have the file osgViewer/StataHanler in the instalation of osg and do not manage to instal it.
I delete the EventHandler, do you think that it could be the reason why when I
use
m_G = new osgViewer::GraphicsWindow;
m_G-> setWindowRectangle(100, 100, 200, 200);
it don't do anything ?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17876#17876
And I was wondering if there was a bug from my computer because,
Apparently the MFC example is suppose to do what I want like that:
http://forum.openscenegraph.org/viewtopic.php?t=2267&highlight=
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17910#17910
Nemo Ulysse wrote:
> I already work on this example but the 3d model is open in full screen and I don’t manage to change that.
>
Are you saying the example program is doing what you want, except you
don't want the view to be maximized? If you click on the restore button,
do you get the window layout that you are looking for?
Cory
No it don’t do what I want.
In fact the CMDIChildWnd in which the 3D scene should be open is at the good place
But the 3D scene is not in the CMDIChildWnd
If I do a ctrl+tab I have this result :
------------------
Read this topic online here:
http://www.openscenegraph.org/projects/osg/changeset/7152
for me it work
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17987#17987