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 X,Y (Window) to X,Y,Z World Coordinates (OpenGL)

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Denmark
    Posts
    1

    Convert X,Y (Window) to X,Y,Z World Coordinates (OpenGL)

    How do i convert a windows coordinates (X,Y) to OpenGL coordinates (X,Y,Z)? I have heard about gluUnProject(..) but i'am not using C and i don't know how to get this function (file) for Delphi!

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Denmark
    Posts
    15

    Re: Convert X,Y (Window) to X,Y,Z World Coordinates (OpenGL)

    The Opengl - Delphi site: http://koci.opengl.cz/angopengl.htm
    has a delphi source / tutorial called >>Aiming - function 'glReadPixels'<<
    I have used this to transfer the object coordinates to a statusbar, when the mouse is over an object.

    Håber det hjælper dig

Posting Permissions

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