[vtkusers] To synchronize two camera

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Fri Jun 13 08:55:43 EDT 2003


Amit,

Try:
ren2->SetActiveCamera (ren1->GetActiveCamera());

with ren1 and ren2 your two renderers ...

HTH
mathieu

amit shrivastava wrote:
> Hi All, 
> 
> To synchronize (should have the same DOP, same View up Vector or should the have same elevation, azimuth & roll )  two camera i am using following code.
> float *orientation1 = pCamera1->GetOrientation();
> float *orientation2 = pCamera2>GetOrientation();
> 
> pCamera2->Elevation(-(orientation2[0] - orientation1[0]));
> 
> pCamera2->Azimuth(orientation2[1] - orientation1[1]);
> 
> pCamera2->Roll(-(orientation2[2] - orientation1[2]));
> 
> but it is not working ...
> has any body encountered the same problem before?
> 
> any help?
> 
> thanks
> 
> amit
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> <http://www.herohonda.com/karizma>


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/




More information about the vtkusers mailing list