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

L R reverse #29

Open
gtk2k opened this issue May 9, 2019 · 3 comments
Open

L R reverse #29

gtk2k opened this issue May 9, 2019 · 3 comments

Comments

@gtk2k
Copy link

gtk2k commented May 9, 2019

When I create and run "treasure-hunt.n.html" that modified the Tresure-Hunt sample to load the js file of src (direct_src) directly, L and R will sound reversely Yes. why?
repository:forked

@Ghorthalon
Copy link

Yes, I can confirm that when setting the AmbisonicOrder to a higher value than 1, left and right seem to swap. I suppose this is not intended behavior?

@capnmidnight
Copy link

capnmidnight commented Aug 7, 2020

From what I can tell, this appears to have happened because the Omnitone code base was ported from a version originally written for a C++-based game engine, wherein the coordinate system is left-handed. Resonance/Omnitone compute audio in the right-handed coordinate system, so for that game engine the rotations had to be flipped to match the World. But WebAudio is right-handed, so that conversion isn't necessary.

Since this repo hasn't been updated in several years, I forked the two projects and fixed the issue here: https://github.com/capnmidnight/resonance-audio-web-sdk

@Code6226
Copy link

@capnmidnight Looks like that link is 404ing now. What change did you make to fix it?

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

4 participants