Results 1 to 3 of 3

Thread: How to get current MODELVIEW MATRIX and PROJECTION MATRI

  1. #1
    Junior Member
    Join Date
    May 2005
    Posts
    3

    How to get current MODELVIEW MATRIX and PROJECTION MATRI

    In opengl
    glGetDoublev (GL_MODELVIEW_MATRIX, mvmatrix);
    glGetDoublev (GL_PROJECTION_MATRIX,pjmatrix);
    can get modelview matrix and projection matrix.
    In opengl Es how to get?
    Tanks!

  2. #2

    Re: How to get current MODELVIEW MATRIX and PROJECTION MATRI

    Currently, in OpenGL|ES, you must track the matrices, because OpenGL|ES doesn't allow glGetxxx for dynamic states, but if your OpenGL|ES implementation supports the GL_OES_matrix_get (read this extension in the GLES1.1 spec for more information) extension, you will be able to get the current matrices.

  3. #3

    Re: How to get current MODELVIEW MATRIX and PROJECTION MATRI

    For OpenGL ES 1.0 there is also the OES_query_matrix optional extension which is supported by some implementations (e.g., Nokia Series 60 phones support it).

    --jani;

Similar Threads

  1. two-point perspective projection
    By dsasha in forum OpenGL ES general technical discussions
    Replies: 3
    Last Post: 06-03-2009, 03:43 AM
  2. How to get projection matrix???
    By Fadi Chehimi in forum OpenGL ES general technical discussions
    Replies: 15
    Last Post: 08-02-2007, 02:59 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
  •