Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving 3d Coordinates

Status
Not open for further replies.

tougo

Technical User
Sep 9, 2002
27
GB
Does anyone know what function should i use to retrieve 3d coordinates of a point in the direct3d viewport using the mouse.

i've tried several thing but the results are totally wrong
 
Just a guess, I'm not sure it's actually working under DX :
you would need to grab a Z-value from a depth(z)-buffer for particular pixel (the one you clicked on) and then transform it to world-coordinates.
But again, I'm not sure you can do it in DX :(
Give it a try...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top