Hi Julien, I did not encounter any problems running the compositeViewer with Qt4 example, did you modify the example?
Regards, CG -----Original Message----- From: [EMAIL PROTECTED] on behalf of Julien Achard Sent: Wed 3/26/2008 6:38 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Multiple view in a Qt4 interface Okay thank you for your help, When i try to run the exemple of composite viewer with Qt4, i get an error in console, saying : Using QOSGWidget - QWidget + osgViewer creating the graphics context. Windows Error #2000: [Screen #0] GraphicsWindowWin32::setWindow() - Unable to cr eate OpenGL rendering context. Reason: Le format pixel n'est pas valide. Appuyez sur une touche pour continuer... this line seems to be the problem : traits->inheritedWindowData = new WindowData(winId()); when commenting it, it is run but i do not think it is the correct way to run this application. Compilation is Ok, juste some warnings. 2008/3/26, Robert Osfield <[EMAIL PROTECTED]>: > > Hi Julian, > > The type of usage you want is a case of having two Views onto a single > Scene. This mode of operation is supported by the > osgViewer::CompositeViewer. You will be able to use CompositeViewer > with QGLWidget in much the same way, but you'll have two View, each > with a master Camera to which you attach the QGLWidget. > > Robert. > > > On Wed, Mar 26, 2008 at 10:02 AM, Julien Achard <[EMAIL PROTECTED]> > wrote: > > Hi, > > I am new on OpenSceneGraph, and i have a project of osg integration with > > Qt4. > > Actually i have a QGLWidget who inherits of osgViewer::Viewer, and i can > > render a scene on my Qt interface. > > Now i have a problem, because i want to have two differents Widgets in > my Qt > > interface, showing the same scene data, but with differents point of > views. > > I do not want to split a view in the same Widget, i really want two > > disctinct Widgets. > > Can i keep the scene data somewhere and have my two Widgets using the > same > > scene data ? > > > > Thanks. > > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
<<winmail.dat>>
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org