[osg-users] [build] How to open OSG in a CView MFC ?

2009-10-03 Thread Nemo Ulysse
Hi, 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

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-03 Thread Ümit Uzun
Ni Nemo, There is osgViewerMFC example in the source, and firstly you should get the rendering way by scratching the codes. And then you can implement your with same way. There is not much example on MFC, so your only chance is osgViewerMFC I think. Regards. Ümit Uzun 2009/10/3 Nemo Ulysse >

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-03 Thread Nemo Ulysse
Hi Thanks’ for your answer I already work on this example but the 3d model is open in full screen and I don’t manage to change that. Hi Thanks’ for your answer I already work on this example but the 3d model is open in full screen and I don’t manage to change that. I sougth that the window pa

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-03 Thread Ümit Uzun
Hi Nemo, Did you use osg::DisplaySettings to open up multisampling for antialiasing? If you answer yes, remove multisampling support or reduce the multisampling rate. Regards. Ümit Uzun 2009/10/3 Nemo Ulysse > Hi > Thanks’ for your answer > I already work on this example but the 3d model is

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-05 Thread Nemo Ulysse
Hi, 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

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-05 Thread Ümit Uzun
Hi Nemo, I ask DisplaySetting configuration because of some system hardware not support more multisampling and sometimes viewer open up in full screen. Your suspect about stateHandler does not cause this problem. But you should check your m_hWnd. It should be right handler for your CView. Because

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-05 Thread Nemo Ulysse
I am sorry but I don’t understand what you mean by right handler? 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

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-05 Thread Cory Riddell
Hi Nemo, 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

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-06 Thread Nemo Ulysse
Hi 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://forum.openscenegraph.org/viewtopic.p

Re: [osg-users] [build] How to open OSG in a CView MFC ?

2009-10-06 Thread Nemo Ulysse
Resolution of the problem: If someone has the same problem as me, fallow this explication: 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 __