Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAL HRTF sometimes sounds off due the occlusion effect #973

Open
BielBdeLuna opened this issue Feb 5, 2023 · 10 comments
Open

OpenAL HRTF sometimes sounds off due the occlusion effect #973

BielBdeLuna opened this issue Feb 5, 2023 · 10 comments
Labels

Comments

@BielBdeLuna
Copy link

BielBdeLuna commented Feb 5, 2023

sometimes it sounds as if the virtual microphones lag behind the player, as the player moves around the environment. it can be heard with the EFX reverbs and without, so it's not dependant on them.

@BielBdeLuna BielBdeLuna changed the title OpenAL HRTF sometimes sounds off OpenAL HRTF sometimes sounds off lagging behind the player Feb 5, 2023
@BielBdeLuna
Copy link
Author

BielBdeLuna commented Feb 5, 2023

it sounds sometimes like a low-pass filter, imaybe it's the occlusion hurting the HRTF?

--edit--

iI think it's the occlusion or the dobbler or the combination of bothi

--edit 2 --

it's definitively the occlusion, the doppler effecrt doesn't cause any of this, the occlusion breaks the HRTF sound image, with it off the HRTF sounds perfect.

@BielBdeLuna BielBdeLuna changed the title OpenAL HRTF sometimes sounds off lagging behind the player OpenAL HRTF sometimes sounds off due the occlusion effect Feb 5, 2023
@BielBdeLuna
Copy link
Author

this can be heard in Quake 2 first demo, when the player throws the first grenade at the start:

if you toggle s_occlusion_strength 1 and 0 at that same moment the player is running backwards as he throws the grenade you should hear the difference.

the doppler effect doesn't make any substantial change to the HRTF sound image.

@Yamagi
Copy link
Member

Yamagi commented Mar 25, 2023

this can be heard in Quake 2 first demo, when the player throws the first grenade at the start

In what demo? In demo1.dm2 the player doesn't throw a grenade...

@Yamagi Yamagi added the bug label Mar 25, 2023
@BielBdeLuna
Copy link
Author

sorry I was using yquake with the quake 2 RTX where they changed the first demo, and a grenade is tossed there

@Yamagi
Copy link
Member

Yamagi commented Apr 16, 2023

I can hear it. I wonder if this really a code problem and not a unwanted side effect of Q2s rather basic sound system providing not enough data to OpenAL for 100% correct occulusion calculations. @0lvin, what do you think?

@0lvin
Copy link
Contributor

0lvin commented Apr 16, 2023

I will recheck one more time, I suppose that issue related to incorrect combination of parameters for openal processing.

Have you reproduced issue under Windows and Linux?

@Yamagi
Copy link
Member

Yamagi commented Apr 16, 2023

Only under Linux

@BielBdeLuna
Copy link
Author

I think this is the combination of reverb and the occlusion, like if the occlusion where too great effect given the reverb and HRTF channel heavy nature, maybe is a question of switching the order the effects get to be applied?

@BielBdeLuna
Copy link
Author

I mostly hear this "defect" when using occlusion, and walking forward,
sometimes all sounds around sound like if they where mono.
could it be that player self occludes it's own steps?

@pepelevamp
Copy link

i'm on windows and i found the doppler causes comb filtering in the environmental sounds.

the occlusion causes a hard pop when walking past bulk heads. i made a separate ticket for the occlusion one which i kinda regret after seeing this issue open here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants