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

Interactive Audio: Enchanted Forest

Discussion in 'Assets and Asset Store' started by mian1024, Jun 1, 2014.

  1. mian1024

    mian1024

    Joined:
    Feb 9, 2014
    Posts:
    21
    Hi guys,

    Lately I have been experimenting with runtime generated soundscapes. I’m building a system that uses a bunch of small audio clips and plays them in a randomized but controlled way.

    Link to Asset Store.

    Being a sound designer as well as a programmer (have been working on both sides of the fence), I'm fully aware that sound is not the highest priority in the development process. The audio can in most cases be stitched on right at the end without any major impact on playtesting etc. (Graphics and code cannot.) At the end of a project it is not uncommon that there is too little time, money and energy for any ambitious audio design.

    What I'm thinking is that it could sometimes be useful to have a small, lightweight, fully designed, customizable soundscape that can be added to a project with minimal effort. Maybe for a prototype, maybe to deliberately support a longer portion of the game or maybe for a last "oops we need audio”. That was my motivation for this project anyway.

    Here is a link to a web player demo.

    And a YouTube clip:


    This thing is available on the Asset Store now, and I'll probably make a few more soundscapes like this later. Perhaps a sci-fi environment and maybe some horror stuff.

    Enjoy!
     
    Last edited: Jun 1, 2014
  2. imtrobin

    imtrobin

    Joined:
    Nov 30, 2009
    Posts:
    1,548
    Are sounds changeable?
     
  3. Rico21745

    Rico21745

    Joined:
    Apr 25, 2012
    Posts:
    409
    This looks like a very interesting approach to background audio. Any script runtime documentation available to peruse? I imagine most games, like mine, may require the ability to switch between different soundscapes at runtime.

    In addition, have you considered perhaps allowing users the ability to take a master audio track (like an already existing music/ambient track) and layering new effects on it using your system to make it more dynamic?

    Also, how's performance?
     
  4. Play_Edu

    Play_Edu

    Joined:
    Jun 10, 2012
    Posts:
    722
    nice sound
     
    mian1024 likes this.
  5. mian1024

    mian1024

    Joined:
    Feb 9, 2014
    Posts:
    21
    I went for ease of use over flexibility with this one. The limited character customization system in for example WoW has been an inspiration. In that game I'm fully happy to have the graphical bounds set by people who know what they are doing. I don't want to be able to fine tune the width of the nose or the height of the eyebrows, simply because I can't do it good enough to even be happy with it myself. I appreciate any help I can get and I figure the same goes for audio for some people.

    On the other hand, for those who really know what they are doing there are already a number of good assets for managing audio on the asset store. One can even choose to integrate FMOD, which is pure gold in my opinion and free for indies now. Then, of course, you have to be prepared to do a bit of sound design yourself and some coding.

    Enchanted Forest is on the other side of the spectrum - a predesigned soundscape, only somewhat customizable (but impossible to make it sound bad) and with no coding required.

    (To answer your question: Yes you actually can change them, but it is not a documented feature.)
     
    Last edited: Jun 2, 2014
  6. mian1024

    mian1024

    Joined:
    Feb 9, 2014
    Posts:
    21
    Except for the parameters that are obvious from the demo, there are three public functions:

    Play() // Starts the soundscape
    Stop() // Ends the soundscape gracefully. No new sounds will start playing. The sounds already playing will finish.
    Kill() // Abruptly stops all sounds.


    I should put this in an FAQ.

    You can run any other audio in parallell with this. Just play it as usual with the Unity API. You can mute the musical elements of the Enchanted Forest by setting the Fairy Dust parameter to zero. (You can even rip that whole module out of the prefab if you want to. It is easily done, although not documented.)

    More stuff for the FAQ. I did some profiling. I don't have the numbers right now, but they were more or less off the charts on the cheap side. Unity 4.5 is supposed to have an improved audio profiler and I will come back to you on this one.
     
    Last edited: Jun 2, 2014
  7. mian1024

    mian1024

    Joined:
    Feb 9, 2014
    Posts:
    21
    I just discovered that there is a bug in Unity 4.5 that won't allow the same audio clip to be played by multiple audio sources at the same time. Until that bug is fixed, this asset will be completely useless... I was going to check out the new profiler today, but I guess I will have to wait a bit.
     
  8. mian1024

    mian1024

    Joined:
    Feb 9, 2014
    Posts:
    21
  9. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,918
    Lovely asset, buying for sure :)

    Would also buy any other fantasy themed ones for sure