pathogen Posted July 13, 2015 Share Posted July 13, 2015 CrystalsA small sketch incorporating Tone.js with Babylon. It seems like the two timing systems work reasonably well together, and with stress testing I only came across a few occasional 'hung' notes which disappeared when un-focusing / re-focusing the browser.The audio works by far the best in Chrome, and in Firefox produces some 'pops' and 'crackle' (as it does with any use of web audio still unfortunately ).The crystals are a Babylon interpretation of Amanda Glosson's Spinning Ball of Crystal which was done in three.js. Both the crystals and the audio are generated in the code... no models or audio files! So feel free to 'view source' and see how it works PS. I hope it's okay to post these things in the main forum? I didn't see a thread for small sketches, like there is with the 'projects' thread. kofno, iiceman and Wingnut 3 Quote Link to comment Share on other sites More sharing options...
kofno Posted July 13, 2015 Share Posted July 13, 2015 I thought this was pretty neat. Very relaxing... pathogen 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted July 13, 2015 Share Posted July 13, 2015 Amazing !!! I love this !!!Of course you can post this here : you MUST do it actually.Even in the playground, so everyone can understand and play with the code.. pliiiiiiiiizz pathogen 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted July 13, 2015 Share Posted July 13, 2015 People using can't be bad Quote Link to comment Share on other sites More sharing options...
davrous Posted July 13, 2015 Share Posted July 13, 2015 Very cool! It also works great inside Microsoft Edge. pathogen 1 Quote Link to comment Share on other sites More sharing options...
pathogen Posted July 14, 2015 Author Share Posted July 14, 2015 I'm glad to hear that davrous! Can't wait to get the official release of win10 on my Surface Pro 3 And another engine that runs the Web Audio API? Bliss! Amazing !!! I love this !!!Of course you can post this here : you MUST do it actually.Even in the playground, so everyone can understand and play with the code.. pliiiiiiiiizzI started the sketch in the playground, but unfortunately I got the 'Unable to save your code. It may be too long.' error when I tried to save it The code is still all there if you view source nonetheless. And I ensured not to minify the scene.js code so anybody can look through it and see what's going on (and how sketchy my coding was lol).It hasn't been optimised, and infact is de-optimised, with lots of excess calculations rather than holding values in variables because I wanted to test Babylon running with Tone.js. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 14, 2015 Share Posted July 14, 2015 Excellent! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.