Results 1 to 2 of 2

Thread: 2d mouseclicks to 3d space

  1. #1
    Senior Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Portugal
    Posts
    237

    2d mouseclicks to 3d space

    HI
    Anyone knows how to convert 2d mouseclicks to 3d coords?

    Thanks
    Bruno

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    763

    Re: 2d mouseclicks to 3d space

    yer, see, that would be an underconstrained problem. since an infintite number of 3D points project to the same 2D point, how do you get back the third dimension?

    (cue music, and enter my thesis in computer vision on the trifocal tensor from a video sequence!!) ta-da!

    but, really, you can't get three degrees of freedom from a two degrees of information. you can't. just can't; and it's no use trying.

    What you CAN do is somehow pick the third dimesnion. But how you do this is up to you. Me? I wrote an app that read the depth buffer at the cusor adn used that. I had a 3D cursor (a soccor ball, actually) "rolling" over the landscape following my mouse.

    cheers
    John

Similar Threads

  1. Camera space shadow mapping clip space issues
    By fredvam in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 09-27-2015, 04:58 PM
  2. Replies: 3
    Last Post: 09-16-2014, 08:23 AM
  3. Computing radiance in world space, object space or view space?
    By shapeare in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-25-2013, 06:22 PM
  4. transfer the screen space back to clip space, how?
    By tomriddle in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 10-19-2011, 11:43 PM
  5. what is the fastest algorithm for mapping texture space to file space?
    By wildeyedboyfromfreecloud in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 03-06-2002, 08:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean