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: Transforming a Point

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Oak Flats, NSW, AUS
    Posts
    3

    Transforming a Point

    Is there an OpenGL call to simply transform a point with the ModelView matrix (or with a generic matrix)? I don't really want to have to deal with Feedback mode - all I want is to figure out where a particular point on the 'x' axis would end up given the current translation and rotation settings.

    I understand it could all be done manually...but it's such a basic function that I would assume that it exists somewhere in OpenGL...

    [This message has been edited by IgnoranceIsBliss (edited 11-24-2002).]

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2001
    Location
    Greece
    Posts
    496

    Re: Transforming a Point

    I assume you mean where(x,y) in the window it would end up.So you need to consider not only modelview but also projection,viewport etc.I suggest you try gluProject to begin with.

Posting Permissions

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