Audio visualisations in WebGL for SPINNUP https://spinnup.com/gb/
git clone https://github.com/fluuuid/spinnup.git
npm installnpm run startOpen a web browser and go to http://localhost:3000/
npm run buildEverything should be in your dist folder
isPaused() - Returns Boolean.
pause() - Pauses the audio track.
play() - Starts playing the audio track.
changeViz({ trackSrc, vizId }) - Changes the visualisation and the audio track.
trackSrc- String. Path to the audio file.vizId- String. Name of the visualisation. (i.e. 'Viz02' or 'Viz10')
The project was built using Three.js, a custom audio lib and custom shaders.
Each visualisation consists of two quads, one for the background and one for the logo - with the exception of Viz07 which uses a GLFT object for the logo.
They can be found inside /view/webgl/viz/Viz[Number] and their corresponding shaders can be found inside /shaders/Viz[Number].
Steps to create a new visualisation VizXX
- Create
VizXX.jsextendingAbstractVizinside/view/webgl/viz/VizXX - Create
bg.fragandlogo.fraginside/shaders/VizXX - Define assets to be loaded for VizXX in
/data/AppData - Append
<option value="VizXX">Visualisation XX</option>toindex.html - For quick access during development, append the new viz to the fallback of
loadCoreAssets()inApp.js