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: Find Cordinates

  1. #1
    Junior Member Newbie
    Join Date
    May 2013
    Location
    India
    Posts
    13

    Find Cordinates

    My question is:

    Is there a way to retrieve the coordinates of a vertex after translations or rotation?

    Example: x = 10, y = 10, z = -2

    After a calls to glRotate(45,0,1,1) how can I know the actual status of x, y and z?

    Thanks.

  2. #2
    Member Regular Contributor
    Join Date
    Jun 2013
    Posts
    474
    Quote Originally Posted by viveksrivastava View Post
    Is there a way to retrieve the coordinates of a vertex after translations or rotation?
    In older versions of OpenGL: feedback mode (glRenderMode(GL_FEEDBACK)).
    In newer versions, transform-feedback mode (glBeginTransformFeedback).

    If you're only doing this for a small number of vertices (rather than entire meshes), you're probably better off just performing your own matrix arithmetic in the application.

Posting Permissions

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