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

Threejs PositionalAudio isn't working in a customLayer #13177

Open
roelvanhintum opened this issue May 16, 2024 · 0 comments
Open

Threejs PositionalAudio isn't working in a customLayer #13177

roelvanhintum opened this issue May 16, 2024 · 0 comments

Comments

@roelvanhintum
Copy link

mapbox-gl@3.3.0

Question

ThreeJS has different behavior from within a CustomLayer, than using it vanilla. PositionalAudio's sound is just playing and wont react to moving the map (it should fade out). I suspect it has something to do with transferring the matrix and positions from Mapbox to ThreeJS, but i can't figure out what.

ThreeJS in a CustomLayer: https://codepen.io/roelvanhintum/pen/OJYVjXp
Just ThreeJS: https://codepen.io/roelvanhintum/pen/YzbyQvB

Links to related documentation

https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/

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