¡@

Home 

2014/10/16 ¤W¤È 08:14:16

android Programming Glossary: gl.glrotatef

Android getOrientation() method returns bad results

http://stackoverflow.com/questions/10192057/android-getorientation-method-returns-bad-results

When you rotating model there is difference between gl.glRotatef _angleY 0f 1f 0f ROLL gl.glRotatef _angleX 1f 0f 0f ELEVATION.. is difference between gl.glRotatef _angleY 0f 1f 0f ROLL gl.glRotatef _angleX 1f 0f 0f ELEVATION gl.glRotatef _angleZ 0f 0f 1f AZIMUTH.. 0f 1f 0f ROLL gl.glRotatef _angleX 1f 0f 0f ELEVATION gl.glRotatef _angleZ 0f 0f 1f AZIMUTH gl.glRotatef _angleX 1f 0f 0f ELEVATION..

OpenGL ES - texture map all faces of an 8 vertex cube?

http://stackoverflow.com/questions/2854237/opengl-es-texture-map-all-faces-of-an-8-vertex-cube

and rotation before drawing gl.glTranslatef x y z gl.glRotatef rx 1 0 0 gl.glRotatef ry 0 1 0 gl.glRotatef rz 0 0 1 gl.glDrawElements.. before drawing gl.glTranslatef x y z gl.glRotatef rx 1 0 0 gl.glRotatef ry 0 1 0 gl.glRotatef rz 0 0 1 gl.glDrawElements GL10.GL_TRIANGLES.. x y z gl.glRotatef rx 1 0 0 gl.glRotatef ry 0 1 0 gl.glRotatef rz 0 0 1 gl.glDrawElements GL10.GL_TRIANGLES numOfIndices GL10.GL_UNSIGNED_SHORT..

How to use onSensorChanged sensor data in combination with OpenGL

http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl

modes do the rotation by hand the order y x z is important gl.glRotatef resultingAngles 2 0 1 0 gl.glRotatef resultingAngles 1 1 0 0.. y x z is important gl.glRotatef resultingAngles 2 0 1 0 gl.glRotatef resultingAngles 1 1 0 0 gl.glRotatef resultingAngles 0 0 0 1.. 2 0 1 0 gl.glRotatef resultingAngles 1 1 0 0 gl.glRotatef resultingAngles 0 0 0 1 move the axis to simulate augmented..

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

gl.glLoadIdentity gl.glTranslatef 0 0 5.0f gl.glRotatef mAngle 0 1 0 gl.glRotatef mAngle 0.25f 1 0 0 gl.glEnableClientState.. gl.glTranslatef 0 0 5.0f gl.glRotatef mAngle 0 1 0 gl.glRotatef mAngle 0.25f 1 0 0 gl.glEnableClientState GL10.GL_VERTEX_ARRAY.. gl.glEnableClientState GL10.GL_COLOR_ARRAY mCube.draw gl gl.glRotatef mAngle 2.0f 0 1 1 gl.glTranslatef 0.5f 0.5f 0.5f mCube.draw..

Android OpenGL 3D picking

http://stackoverflow.com/questions/6699387/android-opengl-3d-picking

_zTranslate gl.glTranslatef centerX centerY centerZ gl.glRotatef _xAngle 1f 0f 0f gl.glRotatef _yAngle 0f 1f 0f gl.glRotatef.. centerX centerY centerZ gl.glRotatef _xAngle 1f 0f 0f gl.glRotatef _yAngle 0f 1f 0f gl.glRotatef _zAngle 0f 0f 1f gl.glTranslatef.. _xAngle 1f 0f 0f gl.glRotatef _yAngle 0f 1f 0f gl.glRotatef _zAngle 0f 0f 1f gl.glTranslatef centerX centerY centerZ ptCloud.draw..

Android getOrientation() method returns bad results

http://stackoverflow.com/questions/10192057/android-getorientation-method-returns-bad-results

problem sorry for bad quality . Thanks in advance. Solution When you rotating model there is difference between gl.glRotatef _angleY 0f 1f 0f ROLL gl.glRotatef _angleX 1f 0f 0f ELEVATION gl.glRotatef _angleZ 0f 0f 1f AZIMUTH gl.glRotatef _angleX.. . Thanks in advance. Solution When you rotating model there is difference between gl.glRotatef _angleY 0f 1f 0f ROLL gl.glRotatef _angleX 1f 0f 0f ELEVATION gl.glRotatef _angleZ 0f 0f 1f AZIMUTH gl.glRotatef _angleX 1f 0f 0f ELEVATION gl.glRotatef _angleY.. rotating model there is difference between gl.glRotatef _angleY 0f 1f 0f ROLL gl.glRotatef _angleX 1f 0f 0f ELEVATION gl.glRotatef _angleZ 0f 0f 1f AZIMUTH gl.glRotatef _angleX 1f 0f 0f ELEVATION gl.glRotatef _angleY 0f 1f 0f ROLL gl.glRotatef _angleZ..

OpenGL ES - texture map all faces of an 8 vertex cube?

http://stackoverflow.com/questions/2854237/opengl-es-texture-map-all-faces-of-an-8-vertex-cube

gl.glTexCoordPointer 2 GL10.GL_FLOAT 0 textureBuffer Translation and rotation before drawing gl.glTranslatef x y z gl.glRotatef rx 1 0 0 gl.glRotatef ry 0 1 0 gl.glRotatef rz 0 0 1 gl.glDrawElements GL10.GL_TRIANGLES numOfIndices GL10.GL_UNSIGNED_SHORT.. 2 GL10.GL_FLOAT 0 textureBuffer Translation and rotation before drawing gl.glTranslatef x y z gl.glRotatef rx 1 0 0 gl.glRotatef ry 0 1 0 gl.glRotatef rz 0 0 1 gl.glDrawElements GL10.GL_TRIANGLES numOfIndices GL10.GL_UNSIGNED_SHORT indicesBuffer Disable.. Translation and rotation before drawing gl.glTranslatef x y z gl.glRotatef rx 1 0 0 gl.glRotatef ry 0 1 0 gl.glRotatef rz 0 0 1 gl.glDrawElements GL10.GL_TRIANGLES numOfIndices GL10.GL_UNSIGNED_SHORT indicesBuffer Disable the vertices buffer...

How to use onSensorChanged sensor data in combination with OpenGL

http://stackoverflow.com/questions/2881128/how-to-use-onsensorchanged-sensor-data-in-combination-with-opengl

0 else gl.glMultMatrixf rotationMatrix 0 else in all other modes do the rotation by hand the order y x z is important gl.glRotatef resultingAngles 2 0 1 0 gl.glRotatef resultingAngles 1 1 0 0 gl.glRotatef resultingAngles 0 0 0 1 move the axis to simulate.. 0 else in all other modes do the rotation by hand the order y x z is important gl.glRotatef resultingAngles 2 0 1 0 gl.glRotatef resultingAngles 1 1 0 0 gl.glRotatef resultingAngles 0 0 0 1 move the axis to simulate augmented behaviour gl.glTranslatef.. by hand the order y x z is important gl.glRotatef resultingAngles 2 0 1 0 gl.glRotatef resultingAngles 1 1 0 0 gl.glRotatef resultingAngles 0 0 0 1 move the axis to simulate augmented behaviour gl.glTranslatef 0 2 0 draw the 3 axis on the screen..

Overlay images onto Camera preview SurfaceView

http://stackoverflow.com/questions/3548666/overlay-images-onto-camera-preview-surfaceview

GL10.GL_DEPTH_BUFFER_BIT gl.glMatrixMode GL10.GL_MODELVIEW gl.glLoadIdentity gl.glTranslatef 0 0 5.0f gl.glRotatef mAngle 0 1 0 gl.glRotatef mAngle 0.25f 1 0 0 gl.glEnableClientState GL10.GL_VERTEX_ARRAY gl.glEnableClientState GL10.GL_COLOR_ARRAY.. gl.glMatrixMode GL10.GL_MODELVIEW gl.glLoadIdentity gl.glTranslatef 0 0 5.0f gl.glRotatef mAngle 0 1 0 gl.glRotatef mAngle 0.25f 1 0 0 gl.glEnableClientState GL10.GL_VERTEX_ARRAY gl.glEnableClientState GL10.GL_COLOR_ARRAY mCube.draw gl.. 0.25f 1 0 0 gl.glEnableClientState GL10.GL_VERTEX_ARRAY gl.glEnableClientState GL10.GL_COLOR_ARRAY mCube.draw gl gl.glRotatef mAngle 2.0f 0 1 1 gl.glTranslatef 0.5f 0.5f 0.5f mCube.draw gl mAngle 1.2f public void onSurfaceChanged GL10 gl int width..

Android OpenGL 3D picking

http://stackoverflow.com/questions/6699387/android-opengl-3d-picking

gl gl.glPushMatrix gl.glTranslatef _xTranslate _yTranslate _zTranslate gl.glTranslatef centerX centerY centerZ gl.glRotatef _xAngle 1f 0f 0f gl.glRotatef _yAngle 0f 1f 0f gl.glRotatef _zAngle 0f 0f 1f gl.glTranslatef centerX centerY centerZ ptCloud.draw.. _xTranslate _yTranslate _zTranslate gl.glTranslatef centerX centerY centerZ gl.glRotatef _xAngle 1f 0f 0f gl.glRotatef _yAngle 0f 1f 0f gl.glRotatef _zAngle 0f 0f 1f gl.glTranslatef centerX centerY centerZ ptCloud.draw gl gl.glPopMatrix Here.. _zTranslate gl.glTranslatef centerX centerY centerZ gl.glRotatef _xAngle 1f 0f 0f gl.glRotatef _yAngle 0f 1f 0f gl.glRotatef _zAngle 0f 0f 1f gl.glTranslatef centerX centerY centerZ ptCloud.draw gl gl.glPopMatrix Here is my picking function. I've..