[vtkusers] 3D coordinate

Lisa Avila lisa.avila at kitware.com
Thu Jun 10 13:30:38 EDT 2004


Hi Sandeep,

The volume mappers do not write to the z buffer when rendering therefore 
you cannot pick using the contents of the z buffer.

Lisa


At 12:32 AM 6/10/2004, Chandna, Sandeep (Research, Non-ge) wrote:

>Hi,
>         I am using GetZ function defined in vtkRenderer to get the 3D 
> coordinate , given an x/y pair. I have a volume and an axes (vtkAxes) in 
> the display window.
>
>The problem is that when I give the x/y location corresponding to the 
>displayed axes, I get a correct Z value (corresponding to the axes 3D 
>coordinate at that x/y location) , but if I give the x/y location of any 
>other point (in the volume and not on axes) I get a Z value of 1 always. I 
>am not sure where the problem is. Same problem comes if I use the 
>GetZBufferData function defined in vtkRenderWindow.
>
>Could some one throw some light on this.
>
>Thanx
>Sandeep
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list