Search Unity

3D sound visualisation

Discussion in 'Works In Progress - Archive' started by Sven-Frankson, Feb 15, 2015.

  1. Sven-Frankson

    Sven-Frankson

    Joined:
    May 29, 2014
    Posts:
    27

    Hi everyone,

    A humble demo about the use of sound spectrum with Unity and runtime mesh generation.

    You might try it on this WebPlayer version.

    https://dl.dropboxusercontent.com/u/3130492/AudioTestWebPlayer/AudioTestWebPlayer.html
    Camera goes forward while mouse cursor is centered, and follow it when going on screen sides.

    And source code is available here : https://github.com/SvenFrankson/3DSpectrum
    (well it might need some refactoring and comments to be understandable, I discovered Unity's audio features with this project, it's quite messy...)

    Thanks for watching and have a nice day !
     
    GibTreaty likes this.
  2. Polymorphik

    Polymorphik

    Joined:
    Jul 25, 2014
    Posts:
    599
    This is really awesome! Nice job on it!
     
    Sven-Frankson likes this.
  3. Sven-Frankson

    Sven-Frankson

    Joined:
    May 29, 2014
    Posts:
    27
    Hi,

    Thanks Polymorphik :)

    Just updated the project. Code is now cleaner, without non-used scripts, still downloadable from my GitHub account (https://github.com/SvenFrankson/3DSpectrum)

    You may try it by adding some music file (any format Unity-compatible), and add it as a Sound Source in the scene.

    Main script has a public variable "Resolution", by modifying it you may divide the Sound Spectrum in more or less parts, hence make the generated terrain more or less wide and detailed.

    On a more "Artistical" point of view, results are nicer with "Stairway to Heaven" than "KaBoom KaBoom", as far as I've tried... ^^

    Have a nice day !
     
  4. Sykoo

    Sykoo

    Joined:
    Jul 25, 2014
    Posts:
    1,394
    Woaw! This is absolutely amazing :) I'll make sure to check it out!