[vtkusers] Re: vtkusers digest, Vol 1 #1881 - 6 msgs

Nico Vermaas vermaas at astron.nl
Fri Jun 13 07:14:58 EDT 2003


Hi Ingo,

I had the same problem.
The Elevation property does not hold the elevation as you might expect, but apparantly the elevation change. Every time that your render, the cam position is changed again with this value.

I believe you should use Focalpoint and Position instead. 

Nico

----------------------------------------------
Date: Fri, 13 Jun 2003 10:31:02 +0200

From: "de Boer Ingo" <I.deBoer at polytec.de>

To: <vtkusers at public.kitware.com>

Subject: [vtkusers] vtkCamera question...*
*


Hi...*


I have a small problem with setting a new angle to the camera...

I have this piece of code...*


float fElevation =3D 90.0f;

float* angles =3D m_pvtkCamera->GetOrientation();

m_pvtkCamera->Elevation(-angles[0]);

m_pvtkCamera->Elevation(fElevation);

m_pvtkCamera->Modified();

angles =3D m_pvtkCamera->GetOrientation();*


Why is angels[0] in the end not 90.0f ??

Instead every angels[i] changes to some weired value ?!*


greets

* Ingo*


--__--__--*
>>> vtkusers-request at public.kitware.com 06/13/03 11:33 AM >>>



More information about the vtkusers mailing list