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

Upgrading according to latest three.js version #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Upgrading according to latest three.js version #19

wants to merge 1 commit into from

Conversation

robert-feller
Copy link

Hello!

First of all, let me say many many thanks for your effort to develop this, to my taste, nifty piece of code for using webaudio together with three.js! It makes it much easier for me to start with audio in 3D during my own efforts in three.js construction works.

What I in this little fork just did is; Replaced every appearance of the method name .getPositionFromMatrix() with .setFromMatrixPosition().

Actually, I am not sure, if you already before may have considered upgrading the otherwise deprecated method name to the new one? It only creates a warning message, and sure enough, remaining with the old method name users of the script, who stick to the older three.js versions can keep using it. I am still new to the question of maintaining scripts, therefore only in case you did not notice the deprecation issue, and not having gauged the benefits and the drawbacks yourself, yet, I consider it may be of relevance. The more so, I feel encouraged to propose this to you, as I could see that the according method has been renamed in case of your other scripts threex.transparency.js and threex.objcoord.js as well.

And as I like to keep in mind always Winnie the Pooh while continuing some construction work with the coding ... http://orig01.deviantart.net/8db6/f/2011/049/8/5/winnie_the_pooh_by_jo_from_kokomo-d39toyl.jpg

Regards
Robert

Hello!

First of all, let me say many many thanks for your effort to develop this, to my taste, nifty piece of code for using webaudio together with three.js! It makes it much easier for me to start with audio in 3D during my own efforts in three.js construction works.

What I in this little fork just did is; Replaced every appearance of the method name .getPositionFromMatrix() with .setFromMatrixPosition().

Actually, I am not sure, if you already before may have considered upgrading the otherwise deprecated function name to the new one? It only creates a warning message, and sure enough, remaining with the old function name users of the script, who stick to the older three.js versions can keep using it. I am still new to the question of maintaining scripts, therefore only in case you did not notice the deprecation issue, and not having gauged the benefits and the drawbacks yourself, yet, I consider it may be of relevance. The more so, I feel encouraged to propose this to you, as I could see that the according method has been renamed in case of your other scripts  threex.transparency.js and threex.objcoord.js as well.

And as I like to keep in mind always Winnie the Pooh while continuing some construction work with the coding ... http://orig01.deviantart.net/8db6/f/2011/049/8/5/winnie_the_pooh_by_jo_from_kokomo-d39toyl.jpg


Regards
Robert
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

Successfully merging this pull request may close these issues.

1 participant