What's your focal point?<br><br>The view direction is the vector between position and focal point.<br><br>Shash<br><br><div class="gmail_quote">On Wed, May 11, 2011 at 1:06 PM, Nelson <span dir="ltr"><<a href="mailto:gnjoseph@gmail.com">gnjoseph@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Shashwath,<br>
<br>
I used the following code:<br>
<br>
m_pRenderer->GetActiveCamera()->SetPosition( 1.0, 0, 0.0 );<br>
m_pRenderer->GetActiveCamera()->SetViewUp( 0, 0, 1 );<br>
m_pRenderer->ResetCamera();<br>
<br>
It sets the view direction to +X.<br>
But it does not set the view direction to +X for various objects. (it works<br>
only for some objects)<br>
<br>
Could you tell, anything should I add to this code?<br>
<br>
-----<br>
Regards,<br>
Nelson<br>
<font color="#888888">--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-view-Front-Top-Bottom-etc-views-of-an-object-tp3759132p4386686.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-view-Front-Top-Bottom-etc-views-of-an-object-tp3759132p4386686.html</a><br>
</font><div class="im">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>