[vtkusers] Problem with vtkCamera.
Denis Shamonin
dshamoni at science.uva.nl
Thu Nov 1 07:02:05 EST 2001
I have something strange with vtkCamera and setting position on (0,0,0),
This is the part of code:
vtkRenderer *renderer = vtkRenderer::New();
vtkCamera *camera = vtkCamera::New();
camera->SetPosition(0,0,0);
camera->SetFocalPoint(0,-1,0);
renderer->SetActiveCamera(camera);
// Test for the matrix of the view transform.
vtkMatrix4x4 *test =
renderer->GetActiveCamera()->GetViewTransformMatrix();
test->PrintSelf(cout,0);
And i see very strange information:
Does it bug in vtkCamera ?
And i can't see anything in window.
------------------------------
Debug: Off
Modified Time: 305
Reference Count: 1
Elements:
0 0 0 0
0 0 0 0
0 1 0 0
0 0 0 1
------------------------------
But if do like this, everything work correct
camera->SetPosition(0,0,0);
camera->SetFocalPoint(-1,0,0);
------------------------------
Debug: Off
Modified Time: 305
Reference Count: 1
Elements:
0 0 -1 0
0 1 0 0
1 0 0 0
0 0 0 1
Does anybody know something about it ?
-Denis Shamonin.
More information about the vtkusers
mailing list