CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2005
    Posts
    33

    Positions of 3d objects

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Positions of 3d objects

    That is probably impossible from what I've heard about DirectX. Maybe someone can chime in.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jan 2005
    Posts
    33

    Re: Positions of 3d objects

    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...

  4. #4
    Join Date
    May 2007
    Posts
    811

    Re: Positions of 3d objects

    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).

  5. #5
    Join Date
    Jan 2005
    Posts
    33

    Re: Positions of 3d objects

    Quote Originally Posted by STLDude
    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?

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Positions of 3d objects

    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured