Click to See Complete Forum and Search --> : Positions of 3d objects


redcrusher
December 1st, 2007, 08:03 PM
to put it in the simplest terms possible, i want to look at another program that is running directx and get the position of an object that is rendered on the screen.

basically i want to be able to be able to tell the program the name of an object ( in the other program) and it will give me its coordinates.

If you have any ideas, please through them my way.

dglienna
December 1st, 2007, 08:07 PM
That is probably impossible from what I've heard about DirectX. Maybe someone can chime in.

redcrusher
December 1st, 2007, 08:13 PM
well, technically, it has to be possible...

Isn't the screen positions part of the basic IO.

the computer HAS to know where it is putting it on the screen...

STLDude
December 1st, 2007, 11:59 PM
Yes, but by that time z component is already lost, and you can not inverse 2d into 3d point without z. You will need to be able to capture that data earlier on not just looking at directX output (as pixels).

redcrusher
December 2nd, 2007, 12:23 AM
Yes, but by that time z component is already lost, and you can not inverse 2d into 3d point without z. You will need to be able to capture that data earlier on not just looking at directX output (as pixels).

is there a way to do that?

dglienna
December 2nd, 2007, 12:33 AM
Take a look:

http://gpwiki.org/index.php/DirectX:Direct3D:Tutorials:VB:DX7:Hybrid_Engine