openal coordinates vs. opengl coordinates

Nibbie
Posts: 4
Joined: 2010.10
Post: #1
This is probably a FAQ level question, but I've searched a bit and didn't find it so will ask here.

My basic question is whether you try to keep your openal coordinate system in sync with your opengl coordinates or if this turns out to be a bad idea.

For example, my app's opengl origin (0,0) is in the middle of the landscape-oriented screen. The -0.5 is the far left, 0.5 the far right. Same for top/bottom. Front to back (z) always ranges from 0.5 to -0.5, with the player/listener at 0.5.

Do these ranges work with OpenAL in terms of mono audio clips sounding like they are in different places (ie. left/right of the listener, some closer, some further away)? Or, is it better to translate the opengl coordinates to a different scale for audio?

The OpenGL stuff is working great and I don't want to change it if possible.

Again, if this is has already been answered feel free to reply with a pointer there.

Thanks!
-Gerald
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
You may have to adjust the falloff in AL, but I would certainly keep the coords the same.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenGL Perspective Screen to Obj Coordinates Mapping Question WhatMeWorry 5 8,721 Feb 17, 2011 05:40 PM
Last Post: Holmes
  Retrieving new object coordinates after translation/rotation chris69m 4 5,995 Apr 13, 2008 06:47 PM
Last Post: chris69m
  Swapping OpenGL's Y coordinates. WhatMeWorry 7 5,224 Mar 28, 2006 09:16 AM
Last Post: Nick
  SDL mouse event coordinates MattDiamond 9 13,150 Oct 3, 2005 06:38 PM
Last Post: PowerMacX
  Mouse coordinates in fullscreen TomorrowPlusX 9 5,577 Aug 26, 2005 09:03 PM
Last Post: arekkusu