[MC-1037] Missing pitch rotations in OpenAL implementation Created: 28/Oct/12 Updated: 02/May/15 Resolved: 31/Oct/12 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.2 |
| Fix Version/s: | Minecraft 1.4.3 |
| Type: | Bug | ||
| Reporter: | Matthew Kerswill | Assignee: | [Mojang] Nathan Adams |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | OpenAL, audio, sound | ||
| Environment: |
|
||
| CHK: | |
| Confirmation Status: | Confirmed |
| Description |
|
When looking up and down, the apparent direction from which sounds are coming is not altered as it should be. You may be wondering how I am able to perceive any difference between a sound that is coming from above me and a sound that is coming from below me in Minecraft. The answer is that I'm using a drop-in replacement OpenAL device called Rapture3D, which can render a stereo feed for headphones that implements psychoacoustic cues based on HRFT data to make sounds "feel" like they are coming from exactly where they really are. To elaborate on the problem in Minecraft, consider the following example: A zombie is trying to bash down a door and you are standing in the house looking directly at the door. You should hear bashing sounds coming from directly in front of you. Now imagine that you tilt your character's head downwards so that you are looking at the floor. The bashing sounds should now appear to be coming from "above" you due to the downward rotation of your head. Similarly, if you tilt your character's head upwards so that you are looking at the ceiling, the bashing sounds should appear to come from "below" you. In Minecraft, these directional alterations don't occur. Tilting your character's head up and down has no affect on the apparent direction from which sound is coming. Every other game that I have used Rapture3D with correctly alters sound directions based on pitch rotations (ie: looking up and down). Therefore, my theory is that this problem was caused by an oversight while implementing OpenAL in Minecraft. It must be noted that Minecraft does, in fact, take elevation information into account when placing sounds within the OpenAL system. I can hear sounds coming from above and below me while playing. However, if I tilt my character's head downwards to look at a sound source that is below me, it still sounds like the sound source is below me even though my character's head is now tilted to face it straight on. In case you're interested, Rapture3D is an OpenAL device made by Blue Ripple Sound. Codemasters distributes the "Game" version of Rapture3D with their racing games like the DiRT series (from DiRT 2 onwards) and the F1 series (from F1 2010 onwards). To use Rapture3D in Minecraft, you need to purchase either the "User" or the "Advanced" version of Rapture3D from Blue Ripple Sounds's website. Here are instructions for getting Rapture3D working in Minecraft (as quoted from the Blue Ripple Sound website):
|
| Comments |
| Comment by Matthew Kerswill [ 01/Nov/12 ] |
|
I've tested 1.4.3 and I can confirm that looking up and down is now applying the expected changes in sound directions. Sounds great! |
| Comment by [Mojang] Nathan Adams [ 01/Nov/12 ] |
|
1.4.3 will be released for testing later today, hopefully! |
| Comment by Matthew Kerswill [ 01/Nov/12 ] |
|
Fantastic! I look forward to testing it. Is there one of those weekly builds I can try or is 1.4.3 coming soon? |
| Comment by [Mojang] Nathan Adams [ 31/Oct/12 ] |
|
This may or may not be fixed, you'll have to give it a go and let me know! |
| Comment by [Mojang] Nathan Adams [ 31/Oct/12 ] |
|
Seems we're just not calculating the "up" vector and passing it over. |