Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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!