Re: [android-developers] It is possible to rotate a object from his own coordinates and not from the plane coordinates?

2011-10-12 Thread Tushar Bera
Dear Android Team, Please dont send me mail like this. Regards, Tushar On Tue, Oct 11, 2011 at 4:22 PM, saex elpablos...@gmail.com wrote: I am following the OpenGL es rotation examples from google to rotate a simple Square (not a cube) on my Android App, for

[android-developers] It is possible to rotate a object from his own coordinates and not from the plane coordinates?

2011-10-11 Thread saex
I am following the OpenGL es rotation examples from google to rotate a simple Square (not a cube) on my Android App, for example this code: gl.glRotatef(xrot, 1.0f, 0.0f, 0.0f); //X gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f); //Y gl.glRotatef(zrot, 0.0f, 0.0f, 1.0f); //Z It works fine if you

Re: [android-developers] It is possible to rotate a object from his own coordinates and not from the plane coordinates?

2011-10-11 Thread TreKing
On Tue, Oct 11, 2011 at 5:52 AM, saex elpablos...@gmail.com wrote: But if you rotate to one axis, and after that, you rotate to other axis, the rotation is not fair. I mean that the rotation is done from the plane (real world) coordinates and not from the square own coordinates. This isn't