[android-developers] Re: [OpenGL] change coodinate system

2010-04-30 Thread Bob Kerns
Sorry, I didn't really mean it to be that sarcastic -- more educational with a humorous note. But I was a bit rushed, so I kind of skipped over the explanation part, and the humor, well, my humor is of a hit-or-miss variety...but usually I have the good sense to not apply it in online discussions l

Re: [android-developers] Re: [OpenGL] change coodinate system

2010-04-29 Thread Juan Aranda-Alvarez
Thanks, wow, it really was simple. Thanks for the sane answer. Juan On Wed, Apr 28, 2010 at 11:02 PM, Robert Green wrote: > Juan, their sarcasm is well-founded. It's not only possible but > trivial. > > One easy way to change the coordinate system: > > // start drawing > gl.glMatrixMode(GL10.G

[android-developers] Re: [OpenGL] change coodinate system

2010-04-28 Thread Robert Green
Juan, their sarcasm is well-founded. It's not only possible but trivial. One easy way to change the coordinate system: // start drawing gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); gl.glScalef (1, 1, -1); GLU.gluLookAt(gl, pos.x, pos.y, pos.z, lookAt.x, lookAt.y, lookAt.z, upVec.x, u

[android-developers] Re: [OpenGL] change coodinate system

2010-04-28 Thread Bob Kerns
You mean, other than any affine transform that decomposes to include scaling of an odd number of axis by a negative value? Nope, other than that infinite number of ways, nope, no way. On Apr 27, 7:13 pm, Juan Aranda-Alvarez wrote: > OpenGL works in 3D space, so if you would like another orientati