[vtkusers] parallel dependent multiple cameras with mpi

kenan kenansea at hotmail.com
Tue Mar 5 07:54:07 EST 2013


Hello,

I am pretty new in VTK. My aim is to have 5 cameras in which 4 of them
(rear, sideleft, sideright and bottom cameras in my case) are dependent to
the one (front camera in my case). If front camera changes its position or
focal point or anything by interaction, other 4 have to change according to
this immediately. I wrote this code on 1 processor and it works. I did it by
adding observer on front camera and changing other 4 cameras according to
calculations, rendering windows in callback function.

Now I want to do it on multi procs. I used 4 procs and all renders one
window together (front camera) and also each renders a seperate window whose
camera is dependent to front camera. I again used observer and callback
function. All 4 procs have interactor and observer and all enters call back
function. But when I run my code, only proc 0 (root proc) renders its second
window properly in callback function, other 3 procs enter callback funtion
but can't render properly (I just see 3 white windows). 

So anybody has any idea how can I solve this? 
Or any suggestions to do this in other way?

Here I attached my code:  multicameras_mpi.cxx
<http://vtk.1045678.n5.nabble.com/file/n5719020/multicameras_mpi.cxx>  



--
View this message in context: http://vtk.1045678.n5.nabble.com/parallel-dependent-multiple-cameras-with-mpi-tp5719020.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list