Want to see what people are talking about? See the latest forum posts.
*/
*/

Read Post

OpenGL

Moderators: Sephiroth
Number of threads: 55
Number of posts: 117

This Forum Only
Post New Thread

Report
Reversed Axis Direction??? Posted by m0nkfish on on 9 May 2008 at 4:57 AM
Hi

I'm modelling a landscape in openGL but the X axis appears to have been reversed. As far as I know the axes are supposed to be laid out like so (positive values):

Y Z
| /
|/
'----X

however, in my model, the X axis is reversed.


Any ideas why this has happened and how I can correct it?

Thanks!

edit: it has occurred to me that possibly it is the z axis that is reversed and my idea of the axes was wrong..?
Reply
Report
Re: Reversed Axis Direction??? Posted by gautam on on 22 May 2008 at 1:34 PM
Not necessarily true. Any axes can be x, y, z in 3D Computer graphics. I have worked with almost all system and each have their own crazy notion. Many prefer to have y and z swapped.

If you are using 3DS Max to make the landscape then probably your y and z need to swapped and negate the swapped z value. Or you can just build forward, up and right vector on the basis of the axis of the landscape.


: Hi
:
: I'm modelling a landscape in openGL but the X axis appears to have
: been reversed. As far as I know the axes are supposed to be laid out
: like so (positive values):
:
: Y Z
: | /
: |/
: '----X
:
: however, in my model, the X axis is reversed.
:
:
: Any ideas why this has happened and how I can correct it?
:
: Thanks!
:
: edit: it has occurred to me that possibly it is the z axis that is
: reversed and my idea of the axes was wrong..?
:
Reply




corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings