Hi Julien,

I'm afraid I don't use Windows at all, so can't really help out with
Windows specific errors.

Robert.

On Wed, Mar 26, 2008 at 10:38 AM, Julien Achard <[EMAIL PROTECTED]> wrote:
> 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
> >
>
>
> _______________________________________________
>  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

Reply via email to