Page 2 of 2
Re: And now for something completely different....
Posted: Sun Dec 29, 2013 7:59 pm
by jack0088
How is this workig???
you are placing the sound on players position and set the players orientation to the sound? but why are you messing with z-axis at all? couldn't you just use two axis (x,y)? And how does love.audio.setOrientation actually work then?
Re: And now for something completely different....
Posted: Sun Dec 29, 2013 8:02 pm
by BozoDel
nuno wrote:really? When I used elementary OS (based on ubuntu 12.04) it was just adding a line and it was done. what did you have to do?
I tried to follow
this tutorial, which was the first AND second google suggestion for me. It basically said that 12.04 had an old version of OpenAL, and I had to install some packages from 12.10 (which is what broke my shit), and only then add that line. That tutorial is from the early days of 12.04, maybe it was outdated?
But all these comments are giving me the itch. Damn, I'm gonna fix this.
EDIT: Well, I was gonna have to fix it anyway, cause the broken packages were starting to give me trouble. So I reinstalled those packages (the right ones, from 12.04), but that alsoft.conf file I'm supposed to edit doesn't mention hrtf.
¯\_(ツ)_/¯
Re: And now for something completely different....
Posted: Mon Dec 30, 2013 12:02 pm
by Nixola
BozoDel, did you try adding the line yourself? I even had to create the file AND the folder that contains it on Manjaro, maybe it will work
Re: And now for something completely different....
Posted: Tue Dec 31, 2013 12:59 am
by BozoDel
Nixola wrote:BozoDel, did you try adding the line yourself? I even had to create the file AND the folder that contains it on Manjaro, maybe it will work
Ok, I added the line under [alsa], but how do I know it's working? I can't tell a difference. Managed to finish the demo, tho.
Re: And now for something completely different....
Posted: Fri Jan 03, 2014 3:44 am
by Mermersk
Very interesting! and hard aswell. But still amazing how quickly your senses adjust to like only hearing sound.
Re: And now for something completely different....
Posted: Fri Jan 03, 2014 9:57 am
by nuno
jack0088 wrote:How is this workig???
you are placing the sound on players position and set the players orientation to the sound? but why are you messing with z-axis at all? couldn't you just use two axis (x,y)? And how does love.audio.setOrientation actually work then?
its a 3d game, not 2d.. you just dont see anything
to understand that, you should read a bit of the OpenAL specification. Sounds are positioned in space using x,y,z coordinates, and the listeners is also positioned and oriented with the same 3 coordinates. the underlying openal library does the work in making it sound like it should
Re: And now for something completely different....
Posted: Fri Jan 03, 2014 1:29 pm
by BozoDel
I think the z axis affects two things:
- Imagine this: the sound travels from the sound source - a bell, for example - to your ears, but, depending on the angle, it's gonna reach one ear first, and then the other. That is affected by axes x and y, but also z.
- The loudness of the sound as perceived by ou ears varies with the shape of your ears. For example, things are louder from the front than from behind. The z axis affects this too, but it's probably a lot more complicated... it even seems that you can get different results by simulating different shapes for the ear and sizes for the head.
So yeah, it's all minimal, but you brain should be able to pick up the differences subconsciously.
Re: And now for something completely different....
Posted: Sat Jan 04, 2014 10:43 am
by nuno
I took some time today to put detailed info on the page regarding HRTF.
You can read a detailed description on how to get it enabled and customized for you. I also made a small HRTF test tool so you can see if its working as it should.
Downloads:
http://www.bitoutsidethebox.com/shabda/downloads/
HRTF info:
http://www.bitoutsidethebox.com/shabda/hrtf-info/
I'll release a 0.0.2 version soon, with some new features.
Update: released