Thursday, April 29, 2010

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

Thanks, wow, it really was simple. Thanks for the sane answer.

Juan

On Wed, Apr 28, 2010 at 11:02 PM, Robert Green <rbgrn.net@gmail.com> 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.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, upVec.y, upVec.z);

Enjoy your new left-handed coordinate system.

On Apr 28, 7:39 pm, Bob Kerns <r...@acm.org> wrote:
> 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 <juan.arandaalva...@gmail.com>
> wrote:
>
> > OpenGL works in 3D space, so if you would like another orientation you could
> > rotate the scene moving the POV (camera) position. But there is no way to
> > move from a right-hand coordinate system to a Left-side one.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment