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: convert a point 2D to a point3D

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2004
    Posts
    1

    convert a point 2D to a point3D

    Hi All,

    I would like to know if exist a way to convert a point 2D (cursor of the mouse) to a point 3D of my graph. I'm designing a programa to show charts in 3D avec surfaces, points and lines.
    And I need to take the point 3D to show the value in each position of the mouse over the graph.

    Thank you!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: convert a point 2D to a point3D

    Hi !

    You can use gluProject and gluUnProject to convert between 2D to 3D and 3D to 2D.

    Mikael

Posting Permissions

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