Results 1 to 2 of 2

Thread: my solution about picking an object in opengl, but .........

  1. #1
    Junior Member
    Join Date
    Jan 2009

    my solution about picking an object in opengl, but .........

    This is my thought, first get the screen coordinats of the 3d vextex, then check the touch screen point is in the shadow of the object on the screen? To to this, we need to get the projected coordinate of a 3d point on the screen.
    And I encountered a problem.
    In opengl, this is simple:
    glGetIntegerv(GL_VIEWPORT, viewport);
    glGetDoublev(GL_MODELVIEW_MATRIX, modelview);
    glGetDoublev(GL_PROJECTION_MATRIX, projection);
    gluProject(x1, y1, 0, modelview, projection, viewport, &winX, &winY, &winZ);

    But in opengl es?there is no fuction “glGetDoublev”? So how can I get the matrix of modelview and projection?

  2. #2
    Senior Member
    Join Date
    May 2006

    Re: my solution about picking an object in opengl, but .........

    Use glGetFloatv.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum |

Similar Threads

  1. glReadPixels() alternative solution?
    By krikit in forum OpenGL ES
    Replies: 4
    Last Post: 04-21-2012, 01:50 AM
  2. The Solution for gluLookAt() Function!!!!
    By Fadi Chehimi in forum OpenGL ES
    Replies: 1
    Last Post: 10-22-2005, 02:13 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