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

Listener orientation #483

Open
ac-stef opened this issue Feb 17, 2024 · 0 comments
Open

Listener orientation #483

ac-stef opened this issue Feb 17, 2024 · 0 comments

Comments

@ac-stef
Copy link
Member

ac-stef commented Feb 17, 2024

Dropped in IRC from Quin.
Dumping it here, so it doesn't get lost...

Hey, this is Quin from Red Eclipse
Trying to find your versioning repository, but it doesn't seem obvious
Are you guys still using SVN or something?
I referenced AC's OpenAL implementation when implementing it in RE and I think I found a bug
Ah GitHub, nvm
OK, so this is incorrect, it results in the camera seeming to pan correctly, but it is actually upside down

// listener

You can verify this by creating a sound source and standing in front of it and turning around
it will be louder when you're facing the wrong way
Also the up vector is supposed to be the camera's up direction, orthogonal to the camera direction
not just 0, 0, 1
Please feel free to reference my commit to RE and use the solution: redeclipse/base@b5dc84d
just make sure the cam matrix has been setup correctly before updating sounds
or calculate the vectors beforehand
Anyway, have a great day guys, my work here is done :)

thx :)

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

No branches or pull requests

1 participant