@ GabrielS:

I would suggest to do the operations in the following order:

1. translate

2. rotate (all rotations here)

3. scale

As the scaling operation will un-normalize the rotation part of your 4x4 matrix and might theoretically have some impact on the following rotation,

so it is safer to first rotate and then scale.

For example you could try something like this (and see if that actually rotates your model 90 degrees around Z for instance):

SampleUtils::translatePoseMatrix(0.0f, 0.0f, kObjectScale, &modelViewMatrix.data[0]);

SampleUtils::rotatePoseMatrix(90.0f, 0.0f, 0.0f, 1.0f, &modelViewMatrix.data[0]);

SampleUtils::scalePoseMatrix(kObjectScale, kObjectScale, kObjectScale, &modelViewMatrix.data[0]);

SampleUtils::multiplyMatrix(&projectionMatrix.data[0], &modelViewMatrix.data[0], &modelViewProjection.data[0]);

If that works, then you could add the other two rotations (one rotation at a time, checking every time by running the app), so to see whether or not the problem shows up when applying more than one rotation.

@ GabrielS:

I would suggest to do the operations in the following order:

1. translate

2. rotate (all rotations here)

3. scale

As the scaling operation will un-normalize the rotation part of your 4x4 matrix and might theoretically have some impact on the following rotation,

so it is safer to first rotate and then scale.

For example you could try something like this (and see if that actually rotates your model 90 degrees around Z for instance):

SampleUtils::translatePoseMatrix(0.0f, 0.0f, kObjectScale, &modelViewMatrix.data[0]);

SampleUtils::rotatePoseMatrix(90.0f, 0.0f, 0.0f, 1.0f, &modelViewMatrix.data[0]);

SampleUtils::scalePoseMatrix(kObjectScale, kObjectScale, kObjectScale, &modelViewMatrix.data[0]);

SampleUtils::multiplyMatrix(&projectionMatrix.data[0], &modelViewMatrix.data[0], &modelViewProjection.data[0]);

If that works, then you could add the other two rotations (one rotation at a time, checking every time by running the app), so to see whether or not the problem shows up when applying more than one rotation.