[vtkusers] VTK, Qt,VtkQt and stereoRendering
Sean McInerney
seanm at nmr.mgh.harvard.edu
Thu Aug 12 14:17:14 EDT 2004
Hi Patrice,
You definitely need to call renwin->StereoCapableWindowOn() *before*
calling show(), since this will obviously trigger a call to Render().
Also note that adding Props to a Renderer that has already been added to
a RenderWindow will also trigger a call to Render() (and/or probably
show()).
-Sean
Patrice Aussems wrote:
> Hi,
>
> I'm using Qt, Vtk and the VtkQt-library of Denis Shamoni (I got the same
> problem when I use the Matthis Koenig version) to create an application
> that support stereo Rendering.
>
> When I exectute the
> renwin->StereoCapableWindowOn() method I got this following error :
>
> Warning: In /local/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line
> 404
> vtkXOpenGLRenderWindow (0x8286ff4): Requesting a StereoCapableWindow
> must be performed before the window is realized, i.e. before a render.
>
> I know that i have to execute this method before the window is rendered
> but i did not use render() in the source code before.
>
>
>
> here is a part of my source code :
>
>
> QApplication app( argc, argv );
> QWidget *widg1 = new QWidget;
> widg1->resize(1000, 500);
> widg1->show();
>
> ren2 = vtkRenderer::New();
> ren2->AddActor(outlineActorl);
> ren2->AddVolume(newvollost);
> ren2->SetBackground(1,1,1);
> ren2->SetActiveCamera(Cameralost);
>
> renwin2 = new vtkQtRenderWindow();
> renwin2->StereoCapableWindowOn();
> renwin2->AddRenderer(ren2);
> renwin2->show();
>
>
> Can anybody help me??
>
> Regards,
>
> Patrice Aussems
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list