[vtkusers] PROJECTION & VIEW Matrix from vtkPerspectiveTransform

Sergio Aguirre sergio.aguirre at gmail.com
Mon Feb 21 21:05:42 EST 2011


Hi everyone,

I am attempting to implement some specific PROJECTION and VIEW matrices.

Reviewing the vtkCamera class documentation you can call
getProjectionTransformMatrix, however, this returns a
vtkPerspectiveTransform class object (vtkTransform for the VIEW matrix).

When debugging single step on a simple example (
http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Tutorial/Step4/Cxx/Cone4.cxx;h=d6ae8f5a4cd3e0b19328effea5d97883d369efe4;hb=HEAD)
I was only able to notice the vtkPerspectiveTransform objects but not their
matrices...

Can anyone suggest how I could interrogate the final PROJECTION and VIEW
matrix just before the render is actually done?

I'd like to make sure I am setting up everything correctly to some OpenGL
code I have.

Hope you can help,

Sergio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110221/d1e838b4/attachment.htm>


More information about the vtkusers mailing list