Skip navigation

Category Archives: OpenGL

Testing Google – Android promotion:


Here the code:

<a href=””>
<img alt=”Get it on Google Play”
src=”” />


How to add easy custom menu links to a WP:

1) Clicked on Appearance ->Widgets

2)Dropped and dragged the Text Widget into the East Sidebar
3)Inserted HTML code for the link
4)Hit Save

It will convert the screen coordinates to the created 3D world.

projectionDepth: is the camera Z

public Number3D screenToWorld(float x, float y, int viewportWidth, int viewportHeight, float projectionDepth)
float[] r1 = new float[16];
int[] viewport = new int[] { 0, 0, viewportWidth, viewportHeight };

GLU.gluUnProject(x, viewportHeight – y, 0.0f, mCamera.getViewMatrix(), 0, mCamera.getProjectionMatrix(), 0, viewport, 0, r1, 0);

//take the normalized vector from the resultant projection and the camera, and then project by the desired distance from the camera.
Number3D result = new Number3D(-r1[0], r1[1], r1[2]);
return result;