[vtkusers] vtkFollower problem
Ferdinando Rodriguez y Baena
ferdinando.rodriguez at imperial.ac.uk
Wed Feb 23 15:18:44 EST 2005
Dear all,
I am trying to get a vtkFollower to track a particular object on screen i.e. I would like the X,Y,Z coordinates of the follower to move with a particular mesh on screen, but the orientation to stay fixed ( facing the screen).
I setup an assembly with a mesh (representing a tool) and two followers, that should track the extremities of the tool. On first display everything looks alright. However, as soon as I SetCamera() in each Follower, all relative information between them and the tool seems to be lost. The difference in position along the depth of the tool is converted into difference in position with respect to the screen i.e. once the camera is set, the position between the two followers never changes, while there should be relative movement between them as the two followers are placed at different depths.
Is this a bug, or is this the way vtkFollower is intended to work? And if the latter is the case, does anyone know of an easy way to accomplish what I am trying to do?
Any help would be much appreciated.
Thanks!
Ferdinando
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050223/fbcdc070/attachment.htm>
More information about the vtkusers
mailing list