Sign in to follow this  
Aressera

Question about local axes conventions

Recommended Posts

I'd like to take a survey of what people think is the dominant convention for local object axes. In the past, I have always oriented characters and objects so that they face towards the negative Z axis in their local coordinate frame. This makes sense for rendering, because it results in X+ going to the right and Y+ as the up direction when viewed from a first-person camera.

 

This is mostly a question of what I should make the default 'front' direction for directional sound sources. Is the convention to use Z- as the 'look' direction, or perhaps Z+?

 

I am living in a right-handed world, if that makes a difference.

Share this post


Link to post
Share on other sites

I would recommend just mimicking whatever you use for the graphics system.  In general, I think the method that you described is common for OpenGL based rendering, while the z-axis is flipped typically for DirectX based rendering.

 

However, the only important thing is that the sound systems match with the graphical systems.

Share this post


Link to post
Share on other sites


I am living in a right-handed world, if that makes a difference.

 

very much so! <g>

 

i live in a left handed world (so to speak), and there, positive Z (your negative Z) is the desired direction for "forward" for the static pose of an object model in object space. its desirable for just the reasons you intuitively suspect. IE it makes life a bit easier. So in your case, a right hand world, facing in the negative Z direction is probably the best option. I can't think of any reason why it wouldn't be. i've been doing it that way (the left hand version thereof ) since i started 3d coding, which would have been when microsoft bought rendermophics (1995) and turned reality lab into directx 1.0, which was released in 1996. i was about to license reality lab for SIMSapce when MS pulled it off the market. I was forced to write my own 3D perspective correct texture mapped poly engine from scratch, since directx 1.0 was yet to be released.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this