[vtkusers] rotating vtkCamera

Marc Cotran marc at cotran.ca
Thu Apr 19 10:58:13 EDT 2007


Hi there,

Try vtkCamera::Elevation() and Azimuth() - both methods take an angle 
parameter. Sounds like you are looking for Elevation(). Pitch(), on the 
other hand, changes the focal point, not the camera position.

hth

Marc


Mark Wyszomierski wrote:
> Hi,
>
> Is there a method of vtkCamera to rotate about the focal point? 
> Something like:
>
> for (int i = 0; i < 64; i++) {
>     double dPitch = i * (360.0 / 64);
>     pCamera->Pitch(dPitch);
>     // render..
> }
>
> The effect I'm looking for is to have the camera orbit around its
> focal point in the direction of its view up.
>
> Thanks,
> Mark
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list