[vtkusers] Multiple Rendering Windows Sharing a Common Camera (Interactor)

stefano mininel mininel.ml at gnbts.univ.trieste.it
Wed Apr 24 03:04:00 EDT 2002


"Link" camera and light of the different renderers. In my code I solved this with something
like:
"
    pRenderer2->SetActiveCamera(pRenderer1->GetActiveCamera());
    pLight->SetPosition(pRenderer1->GetActiveCamera()->GetPosition());
    pRenderer1->AddLight(pLight);
    pRenderer2->AddLight(pLight);
"
There are probably better ways to do this, but for my application this method works.
Regards
    Stefano Mininel

Chih-Wei Chiu wrote:

> I want to have many scalar/vector fields rendered in their own rendering
> window, but they all use the same camera. That is, when I roate the camera
> in one window, the other windows rotates simultaneously, and vice versa.
>
> It seems impossible under current VTK implementation, since an interactor
> can only have one rendering window
> (vtkRenderingWindowInteractor::SetRenderingWindow() instead of
> vtkRenderingWindowInteractor::AddRenderingWindow() ).
>
> What should I do?
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list