Results 1 to 3 of 3

Thread: How can I transform 3D Coordinates into 2D screen coordinates

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2000
    Location
    Paris,France
    Posts
    4

    How can I transform 3D Coordinates into 2D screen coordinates

    I am a french student and I need to pass 3D coordinates into 2D screen coordinates, please help me.

  2. #2
    Member Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    77

    Re: How can I transform 3D Coordinates into 2D screen coordinates

    I am an italian student, and use gluProject (I assume you were asking for how to do it in OpenGL ).

    1) Get current viewing matrix, projection matrix, viewport dimension
    2) call gluProject passing x, y, z, and the matrices from point 1)
    3) read winx, winy, and winz(!)
    The winz coord is used for clipping, I think (I couldn't remeber precisely).
    You should be interested in winx and winy.
    This is the process as described in the red-book. Have a glance.

    [This message has been edited by paolom (edited 03-10-2000).]
    --
    Paolo M.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2000
    Location
    alabama
    Posts
    11

    Re: How can I transform 3D Coordinates into 2D screen coordinates

    this is a handy tutorial for your prob
    http://www.velocity.net/~waz/glgamed...glfeedback&S=1

Similar Threads

  1. Replies: 4
    Last Post: 06-08-2016, 07:01 PM
  2. Screen coordinates to world coordinates
    By iverson1407 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-20-2011, 08:32 PM
  3. Texture coordinates to screen pixel coordinates
    By lucafr in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-13-2011, 04:19 AM
  4. How to get texture coordinates from screen coordinates
    By geckosenator in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 01-28-2006, 07:23 AM
  5. Replies: 1
    Last Post: 03-09-2000, 05:41 AM

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