Aidoru

07-14-2015, 02:55 AM

Hello,

I loaded my model from an STL file, I don`t have any problem to display and translate it, the problem is when I try to rotate.

My gl_postion is:

gl_Position = projection * rotation * translation * model * position;

Where projection is orthographic matrix, rotation is a simple rotation around Y, translation is a matrix translation of (400, 300, 0) as my window is 800x600, and model is a simple identity matrix.

I think the problem is about axis rotation, I thought that a simple translation to the center could resolve the problem, but it isn`t that.

Could someone help me?

Thank you

I loaded my model from an STL file, I don`t have any problem to display and translate it, the problem is when I try to rotate.

My gl_postion is:

gl_Position = projection * rotation * translation * model * position;

Where projection is orthographic matrix, rotation is a simple rotation around Y, translation is a matrix translation of (400, 300, 0) as my window is 800x600, and model is a simple identity matrix.

I think the problem is about axis rotation, I thought that a simple translation to the center could resolve the problem, but it isn`t that.

Could someone help me?

Thank you