Advertisement Jump to content
Sign in to follow this  

OpenAL - What space is it in? AL_POSITION

This topic is 4980 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What are the actual 'units' of OpenAL? For sounds in my world, I assign them a certain position, alSource3f( source, AL_POSITION, pos.x, pos.y, pos.z ). Ok, so that's well and good. But, to 'visualize' this position, I want to put a small sphere there. Now, my world can be translated/scaled/rotated, so the axis are messed up - I account for this, though. I am using a scene graph structure for my rendering, so I add the sphere model to represent the sound to the topmost node (i.e. no transformations / rotations / scales are applied to it). Now, I would assume that the OpenAL coordinates for AL_POSITION and these model coordinates are in the same space, as neither has any apparent transformations applied to them. Yet, for some reason, OpenAL seems to be in it's own funky space. The model lines up perfectly at the origin (0,0,0), but other positions, the sound does not sound like it is coming from the spot of the model. I've been stuck on this for a while. Any ideas? Thanks!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!