Hi Dan, <div>all matrices can be found in vtkCamera (vtkCamera ::GetModelViewMatrix; vtkCamera::GetProjectionTransformMatrix). Also vtkOpenGLCamera::Render() method could serve as good starting point, because also viewport is preseted there.</div>
<div><div><br></div><div>For direction VTK -&gt; Opengl , this could be inspiration <a href="http://vtk.1045678.n5.nabble.com/How-to-forward-mouse-move-event-to-polydata-algorithm-and-get-there-direction-of-projection-td5714021.html#a5714029">http://vtk.1045678.n5.nabble.com/How-to-forward-mouse-move-event-to-polydata-algorithm-and-get-there-direction-of-projection-td5714021.html#a5714029</a> . In <span style="background-color:rgb(255,255,255)">vtkCameraObserver there, you can implement code that update your OpenGL state (instead of mine case, where I wanted update vtk algorithm) .</span></div>
<div><br></div></div><div>For oposite direction this thread could be inspiration <a href="http://vtk.1045678.n5.nabble.com/Question-on-manual-configuration-of-VTK-camera-td5059478.html">http://vtk.1045678.n5.nabble.com/Question-on-manual-configuration-of-VTK-camera-td5059478.html</a> . There is no direct method to set model view matrix, it is necessary use vtkCamera methods to preset camera (at least as I know )</div>
<div><br></div><div>Also I think that if you preset both contexts to same initial composition (modelview matrix or perhaps only view matrix), than you could use only vtkCamera::SetUserTransform and vtkCamera::GetUserTransform (for model matrix) for synchronization.</div>
<div>J.</div>