two viewports. One master, the other slave

Jul 28, 2011 at 10:00 AM

I have two viewports which should have identical camera positions and properties.

One viewport is used as a "master" in which I manipulate my camera (view point, position etc etc). The other view cannot be manipulated but should follow any camera change I make in the master view.

Possibly there are better solutions and I'd love to hear them, but this is how I solved it now :

I have added a HelixView3D.CameraChanged event to the master view. This copies all camera properties from the master to the slave :


NonShadedView.ViewHelix.Camera.Position = ShadedView.ViewHelix.Camera.Position;
NonShadedView.ViewHelix.Camera.FarPlaneDistance = ShadedView.ViewHelix.Camera.FarPlaneDistance;
NonShadedView.ViewHelix.Camera.LookDirection = ShadedView.ViewHelix.Camera.LookDirection;



The only thing not working is a change in Field of View.

I cannot find which property defines the Field of View. Possibly it is not set as public ?

Any help appreciated.


Jul 29, 2011 at 12:03 PM

Found the answer myself:

reference the camera as a perspective camera and you are good to go ! The field of view property is available



Sep 14, 2011 at 8:25 AM

see the new ContourDemo, it is using master-slave views.