Hi Neollie,<br /><br />
the ViewMatrix you can get from the camera object:
<pre>  renWin-&gt;GetRenderers()-&gt;GetFirstRenderer()-&gt;GetActiveCamera()-&gt;GetViewTransformMatrix()</pre>

Just as an additional information: the projection matrix you can get with GetProjectionTransformMatrix() and the combination of view and projection matrix via GetCompositeProjectionTransformMatrix().<br /><br />

Don't know exactly what you mean by view vector, but you may think of the vector between camera's position and the focal point.<br />
This vector can be retrieved like this:

<pre>  renWin-&gt;GetRenderers()-&gt;GetFirstRenderer()-&gt;GetActiveCamera()-&gt;GetDirectionOfProjection()</pre>

In case you mean camera's orientation (the pitch, yaw- and roll angle) you can get this three angles like so:
<pre>  renWin-&gt;GetRenderers()-&gt;GetFirstRenderer()-&gt;GetActiveCamera()-&gt;GetOrientation()</pre>

Hopefully this information is useful.<br /><br />
with best regards<br />
Jochen

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-get-current-view-vector-and-model-view-matrix-of-the-scene-tp5714015p5714018.html">Re: How to get current view vector and model view matrix of the scene</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>