inverting projections

Sathya Krishnamurthy ksathya at omirf.iusd.iupui.edu
Wed Dec 1 14:36:40 EST 1999


Hi Mirco,

Use the functions in the Renderer which converts from ViewToWorld. But
before that make sure you convert from DisplaytoView which is a series of
steps
from LocalDisplayToDisplay
     DisplayToNormalizedDisplay
     NormalizedDisplayToViewport
     ViewportToNormalizedViewport	
     NormalizedViewportToView

All,these functions are in vtkViewport

cheers
~sathya


On Wed, 1 Dec 1999, Mirco Mannucci wrote:

> 
> 
>  Dear vtkusers:
> 
>  I need to retrieve the 3D coordinates of a point highlighted by the mouse
> knowing its depth in the scene.
> 
>  In OpenGl there is a function from the Utility Library that does the job,
> namely gluUnProject(). Is there anything of this sort in vtk?
> 
> If not, I guess I gotta do the job myself, by calculating the inverse
> transform:
> any suggestions ?
> 
>  Thanks to all
> Mirco Mannucci
> 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list