Examples of gluUnProject()


Examples of javax.media.opengl.glu.GLU.gluUnProject()

          glu.gluUnProject((double)screenX, applet.height - (double)screenY, (double)fbUn.get(0), model, 0, proj, 0, viewport, 0, mousePosArr, 0);
          */
         
          //FIXME test not using glReadpixel to get the depth at the location
          //instead we have to build a ray with the result, from the camera location going through the resulst and check for hits ourselves
          glu.gluUnProject((double)screenX, applet.height - (double)screenY, 0, model, 0, proj, 0, viewport, 0, mousePosArr, 0);
        pgl.endGL();
       
        returnVect = new Vector3D((float)mousePosArr[0], (float)mousePosArr[1], (float)mousePosArr[2]);
      }catch(Exception e){
        e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.