templates – Brad's Sonic Musings https://bradleymeyer.com/wp-core audio blog of the Rev. Dr. Bradley D Meyer Sun, 11 Sep 2022 22:33:42 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://bradleymeyer.com/wp-core/wp-content/uploads/2022/09/cropped-icon_01_512-32x32.png templates – Brad's Sonic Musings https://bradleymeyer.com/wp-core 32 32 36691641 Quick tip: using templates in Wwise https://bradleymeyer.com/wp-core/2016/02/06/quick-tip-using-templates-in-wwise/ https://bradleymeyer.com/wp-core/2016/02/06/quick-tip-using-templates-in-wwise/#respond Sat, 06 Feb 2016 20:40:37 +0000 http://www.bradleymeyer.com/wp-core/?p=491 (this originally appeared as a post for designingsound.org) Like any tool in a game developers toolbox, Wwise is a deep, complex program with an owners manual longer than most novels. Who has time to read through an entire manual these … Continue reading ]]>

(this originally appeared as a post for designingsound.org)

Like any tool in a game developers toolbox, Wwise is a deep, complex program with an owners manual longer than most novels. Who has time to read through an entire manual these days? I wanted to show off a simple, often overlooked feature in Wwise, which may not be readily apparent to someone who hasn’t read the manual. The ability to import a folder structure and apply a Wwise structure as a template to it can save a ridiculous amount of time when setting up structures which may have a similar layout to other ones already in your project. With a little forethought and a few mouse clicks, the process of setting up complex structures in Wwise becomes an automated dream.

To start, let’s say we have a series of impact sounds which blend between soft and hard impacts based on the force of the impact and an additional layer of bounce sweeteners which only play above a certain force. We also do some filtering and pitch randomization based on the force and hardness of the objects colliding (via an RTPC). This is organized in Wwise as a blend container with some child random containers which each contain audio files:A blend container layout in Wwise we'll use as a template for importing a new structure. Click for a larger, readable version.

Now let’s start thinking about each of these structures as a folder. If we want to use this structure layout elsewhere in Wwise, we can “re-build” or emulate this structure layout in Windows using folders. Where we have structures in Wwise (their nomenclature for containers, actor mixers, virtual folders, etc.) we create folders in Windows which will serve as a guide for Wwise when we import new sounds. A Windows folder-based layout mirroring the impact structure above would look something like this:

Windows folder layout which corresponds to the structure layout you wish to emulate in Wwise

Similar to the blend container in Wwise example above, we have a “master folder,” in this case obj_sheet_metal_impact, which contains three folders: bounce, impact hard and impact soft and within each of those folders are corresponding wav files. With a folder structure in Windows that mirrors the structure we want in Wwise, we can import into Wwise complete with all of our bussing, RTPCs, crossfades, etc. created for us! (As an aside, I always build my folder structures directly in the Originals folder so that the organization is already in place without having to move wav files and folders around as an extra step in the File Manager).

Once your folders are laid out in a similar manner to your Wwise hierarchy, open the Audio File Importer in Wwise and click the “Add Folders” button. Navigate to the top level folder of your new structure, in my case “obj_sheet_metal_impact” and click “Select Folder.” This will open that folder in the Audio File Importer. You can now assign each folder level as a different structure in Wwise such as a random, sequence or blend container. The magic, however, happens when we click the arrow in the Template column and select “Browse” then navigate to an existing structure whose layout and parameters we want to emulate:

The Wwise template layout

As you can see Wwise automatically fills in which structure each folder should represent and even handles having more (or less) audio assets in a folder. Shuffle things around as/if needed, then click Import, and you’ll have a new structure mirroring the template structure complete with all rtpcs, crossfades, etc.

Our new structure with all template properties applied

Once we import the folder structure using an existing structure in Wwise as a template, we’re then free to tweak it to our hearts’ (or games’Smilie: ;) content, but most of the grunt work has been taken care of through some simple folder organization. Happy templating!

]]>
https://bradleymeyer.com/wp-core/2016/02/06/quick-tip-using-templates-in-wwise/feed/ 0 491