-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: 246 positional audio #365
feat: 246 positional audio #365
Conversation
|
…to feature/246-add-positional-audio-component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this part to counter a problem with the three.js package. I'm going to open an issue, but in the meantime I've fixed it with this part of code 🤙
Hi @damienmontastier no problem, I wouldn't use
Is this component ready to review I've seen many new commits coming into??? |
Fwiw, for the time being, you could set up your own git hook to run the linter. (At least for me, Coincidentally, I just opened a similar issue on Tres for this. It's a proposal to run the linter before git pushes files to Github and halt pushes that include linter errors. (With an opt-out.) |
Hey @JaimeTorrealba !
No, it's not ready for review yet, I need to add an example and correct my lint errors. ——— It could indeed be interesting! When I see 100 lint errors to correct by hand, I get scared haha... after all, we're all a bit lazy! 😆 —— I also noticed another potential problem: when I use my core component |
@damienmontastier. Please let me know when this is ready :)
😄 |
Maybe you know, but just in case it's helpful: The linter can fix many common errors if you do Just close or save any open, edited files in the editor before you run the linter. Otherwise, the editor will throw 'overwrite' warnings when you eventually save those files. |
Finally, I found a way to lint on code save with the VSCode extension ESLint 🤙 Thanks 👌 |
Hey! PR over! I've just got a problem and I can't seem to solve it, so if you've got any ideas... On the component documentation there are two demos and there seems to be a sound problem, the sounds seem to crackle... When you comment on one of the two demos everything works perfectly... I can't figure out why... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @damienmontastier. I just drop some little reviews, nothing too big.
Sorry for asking you to move the assets, but in cientos we should not have assets (except images). I'll update the contribution guide adding this definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @damienmontastier. I just drop some little reviews, nothing too big.
Sorry for asking you to move the assets, but in cientos we should not have assets (except images). I'll update the contribution guide adding this definition.
And big thanks for this.
…to feature/246-add-positional-audio-component
Hey @alvarosabu @JaimeTorrealba ! I've changed quite a few things, it looks like it's a good version, let me know! ✌️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!!!
Issue #246 (Positional Audio)
Local Playground —
pnpm run playground
Local Documentation —
pnpm run docs:dev
@alvarosabu, @JaimeTorrealba
This is my first PR on Cientos and I wanted to get your feedback so that I can improve the code/operation as much as possible in line with user expectations. 🤙
Description
Component based on the Three.js PositionalAudio class. It includes a helper that makes it easier to visualise the sound emission. This helper is based on PositionalAudioHelper class.
Feedbacks
<TresLeches>
in the template, which greatly limits its use for example with a helper during development. In the case of this Positional Audio composant, it would be cool if you could set parameters directly via the GUI. Maybe create a single instance of<TresLeches>
and then add elements inside it? Maybe there's a way out of this, if you need help with that or want to contribute to @tresjs/leches.