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

Stereo panning on FMOD.ATTRIBUTES_3D listener seem to be reversed left/right #94

Open
kees- opened this issue Jul 14, 2024 · 2 comments

Comments

@kees-
Copy link

kees- commented Jul 14, 2024

2024-07-14_13-13-31a.mp4

See the attached for a spatialized event emitting from the cassette object. When the listener on the camera is relatively to the right of an object, it will play from the right channel. If my understanding is correct that this is an error and not something I've misconfigured, this is solved by inverting the SetListener ATTRIBUTES_3D position z-plane:

attr.position.x = -1 * camera.Position.X;
attr.position.y = -1 * camera.Position.Y;
@kees-
Copy link
Author

kees- commented Jul 14, 2024

Sike, inverting the position isn't a fix at all and the fix only works here because the cassette is near the origin, please disregard my solution, but the problem remains

@kees-
Copy link
Author

kees- commented Jul 14, 2024

Actually flipping the whole up vector seems to work (instead of x/y) as per this forum post.

attr.up.x = -camera.Up.X;
attr.up.y = -camera.Up.Y;
attr.up.z = -camera.Up.Z;

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