All

Using the code below my quad moves position. However, I don't want this to happen, all I'm after is for the center of rotation to move.

Does anyone have any ideas?

Note, If I place a translate function before the rotate it has no effect whatsoever.

Any help would be appreciated.

I am trying to make a projection matrix scaling the screen and making a coordination system. For some reason I don't think any of my matrix calling is working...

I am applying a rotation matrix to my view matrix:

float[] mTmpMatrix = new float[16];
Matrix.setLookAtM(mTmpMatrix, 0, // mViewMatrix
mCameraPosition[0], mCameraPosition[1], mCameraPosition[2], // eye
mTargetRotPosition[0], mTargetRotPosition[1], mTargetRotPosition[2],
0, 1, 0); // up
Matrix.multiplyMM(mViewMatrix, 0, mRotationMatrix, 0, mTmpMatrix

This is supposed to render a cube. It looks like some parts of the rear faces are rendering in front of the ones closest to the camera. This happens even if I set it farther away.

I've used the following lines for the rotation of the object in open gl es2.
Translation and Scaling works properly, but rotation doesn't happen.

//modelViewMatrix is float[16];

Matrix.setIdentity(modelViewMatrix,0);
Matrix.translateM(modelViewMatrix, 0, x, y, z);
Matrix.rotateM(modelViewMatrix, 0, ax, 1, 0, 0);

//shader concatentation
//gl_Position = projection*modelview*position;

I tried ma

Hi,
I was wondering if there is a way of using awk to extract the lower or upper triangular matrix from a symmetric matrix. Say I have this matrix:
$ cat data:

Code:
1 0 9 6 7 9
0 8 2 8 9 0
9 2 6 9 4 3
6 8 9 6 9 4
7 9 4 9 9 7
9 0 3 4 7 9
I am trying to do two things.

I'm trying to rotate a given bitmap using android Matrix object.

I want to send it to rotated to my server and I'm using Android API8.

Should i use Matrix.setRotate or Matrix.postRotate ?

What is the difference between the two?

Hi All,

I have a question. I need to add 3 matrices of size 2000 x 2000. (i.e) 2000 rows and 2000 columns using Perl::PDL module.

My problems with Matrix.postRotate are as follows

I want to use postRotate to set my matrix to a specific degree, like:

matrix.postRotate(specificDegree, pivotX, pivotY);

When I try this, it seems that my matrix is setting it's degree to (currentDegree + specificDegree).