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.

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.

Hello to everybody..!
I am new to this forum,, Can anybody please help ,,
I am trying display animations on 2 led dot matrices.. such that their rows are connected together (5x14) ,,
now the problem is that i am unable to drive my dot matrix using uln2003a . I am using pic18f452 which is programmed with the animation.

My ImageView is showing a zoomed-in image. from time to time I'm updating it's position using setImageMatrix(matrix).