Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: map 2d coordinates to 3d coordinates in the scene

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2003
    Posts
    2

    map 2d coordinates to 3d coordinates in the scene

    Hi
    Does anybody know how to map a 2D coordinates for a window to a 3D coordinates for the scene drawn in that window?

    That is:when user click mouse in a display window,the position in the window can be easily found by callback defined in glutMouseFunc(),but how can I find out the corresponding 3d coordinates in the scene ?

    Thanks

  2. #2
    Intern Contributor
    Join Date
    Apr 2002
    Location
    UK
    Posts
    50

    Re: map 2d coordinates to 3d coordinates in the scene

    Surely that point could be anyware along the Z axis.

Posting Permissions

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