[vtkusers] how to bypass camera perspective transform 
    Amy Squillacote 
    amy.squillacote at kitware.com
       
    Wed May 18 08:34:29 EDT 2005
    
    
  
Hi Francesco,
Have you tried using the SetUserTransform method in vtkCamera?  Below is 
the description of this method from vtkCamera.h.
   // Description:
   // In addition to the instance variables such as position and orientation,
   // you can add an additional transformation for your own use.  This
   // transformation is concatenated to the camera's PerspectiveTransform
- Amy
At 04:51 AM 5/18/2005, francesco caruso wrote:
>Hello vtkusers
>
>I've got a problem: I have to set a particular perspective
>transform calculated by a process of camera calibration.
>I can't set it with the methods SetClippingRange(), SetViewAngle() etc. 
>because the aspect ratio is different than the viewport/window aspect 
>ratio and because center of projection is not in the origin, so some 
>elements that in the normal projection matrix are equal to 0 are different 
>from 0.
>
>I've tried a cheap solution without result :(  : apply to the actor
>first my projection matrix (as if it was a modelview transformation) and 
>then the inverse of the camera projection transformation obtained with 
>GetActiveCamera()->GetProjectionMatrix( asp_ratio, near, far )
>
>What's wrong in this?
>How can I set my perspective projection?
>
>Please Help me... Tomorrow I have to prepare a demo !!!
>
>Regards
>Francesco
>
>_______________________________________________
>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