¡@

Home 

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

android Programming Glossary: gl.gltranslatef

Trying to draw textured triangles on device fails, but the emulator works. Why?

http://stackoverflow.com/questions/2113638/trying-to-draw-textured-triangles-on-device-fails-but-the-emulator-works-why

matrix gl.glPushMatrix Transformation matrices gl.glTranslatef x y 0.0f gl.glScalef scalefactor scalefactor 0.0f gl.glColor4f..

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

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..

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 0 0 1 move the axis to simulate augmented behaviour gl.glTranslatef 0 2 0 draw the 3 axis on the screen gl.glVertexPointer 3 GL_FLOAT..

Overlay images onto Camera preview SurfaceView

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

gl.glMatrixMode GL10.GL_MODELVIEW gl.glLoadIdentity gl.glTranslatef 0 0 5.0f gl.glRotatef mAngle 0 1 0 gl.glRotatef mAngle 0.25f.. 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..

Problem drawing a sphere in OPENGL ES

http://stackoverflow.com/questions/6072308/problem-drawing-a-sphere-in-opengl-es

this value in z if you want to see the image zoomed in gl.glTranslatef 0.0f 0.0f 5.0f gl.glRotatef xRot 0.0f 1.0f 0.0f gl.glRotatef..

Android OpenGL 3D picking

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

upY upZ if pickPointTrigger pickPoint gl gl.glPushMatrix gl.glTranslatef _xTranslate _yTranslate _zTranslate gl.glTranslatef centerX.. 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 gl gl.glPopMatrix Here..

Trying to draw textured triangles on device fails, but the emulator works. Why?

http://stackoverflow.com/questions/2113638/trying-to-draw-textured-triangles-on-device-fails-but-the-emulator-works-why

2 GL10.GL_FLOAT 0 textureBuffer Push transformation matrix gl.glPushMatrix Transformation matrices gl.glTranslatef x y 0.0f gl.glScalef scalefactor scalefactor 0.0f gl.glColor4f 1.0f 1.0f 1.0f 1.0f Bind the texture gl.glBindTexture GL10.GL_TEXTURE_2D..

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

GL10.GL_TEXTURE_2D 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..

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

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 gl.glVertexPointer 3 GL_FLOAT 0 vertexBuffer gl.glColorPointer 4 GL_FLOAT 0 colorBuffer..

Overlay images onto Camera preview SurfaceView

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

gl gl.glClear GL10.GL_COLOR_BUFFER_BIT 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_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 int height gl.glViewport 0 0..

Problem drawing a sphere in OPENGL ES

http://stackoverflow.com/questions/6072308/problem-drawing-a-sphere-in-opengl-es

gl.glClear GL10.GL_COLOR_BUFFER_BIT gl.glLoadIdentity Change this value in z if you want to see the image zoomed in gl.glTranslatef 0.0f 0.0f 5.0f gl.glRotatef xRot 0.0f 1.0f 0.0f gl.glRotatef yRot 1.0f 0.0f 0.0f mSphere.draw gl public void onSurfaceChanged..

Android OpenGL 3D picking

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

gl eyeX eyeY eyeZ centerX centerY centerZ upX upY upZ if pickPointTrigger pickPoint gl gl.glPushMatrix gl.glTranslatef _xTranslate _yTranslate _zTranslate gl.glTranslatef centerX centerY centerZ gl.glRotatef _xAngle 1f 0f 0f gl.glRotatef _yAngle.. upX upY upZ if pickPointTrigger pickPoint 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 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 set the location to the middle..