[vtkusers] vtkCamera question

Weiguang Guan guanw at rhpcs.mcmaster.ca
Mon Apr 7 12:03:56 EDT 2014


Hello,

I want to generate stereographic projection of a semi-sphere. Can anyone 
point out what's wrong with the code below? It shows nothing on the screen.

         camera->ParallelProjectionOff();

         camera->SetFocalPoint(0.0, 0.0, 0.0);
         camera->SetPosition(0.0, 0.0, radius);
         camera->SetViewUp(0.0, 1.0, 0.0);

         camera->SetViewAngle(150.0);
         camera->SetClippingRange(radius, 2.0*radius);

Thank you very much.

Weiguang


More information about the vtkusers mailing list