Soundscapes Part 1 - Introduction

Tutorial collection, comprehensive listings on main site.

Soundscapes Part 1 - Introduction

Postby Tutorial on Wed Mar 30, 2005 9:36 pm

category
General Half-Life 2/Sound

description
An introduction to the almighty soundscapes and their use.

keywords
sounds, sound, ambient, soundscape, soundscapes, env_soundscape, scape.

Before I explain how to use soundscapes in the source engine I"m going to talk about what they actually do. Because there is so much to explain and it"s probably a good idea if you have a small idea what you getting into.

To start of I"ll talk about the difference between ambient generic and soundscapes.

Ambient generic should be used to play specific sounds with in a certain radius for example the spark off an open wires or the crackle of a near by fire. When you walk into its set radius it triggers its sound, when you leave the sound stops. Nice and simple perfect for specific"s.

Now soundscapes are used to creates the stunning ambience in half life 2 which seemed o so real.

A few things you should know about soundscapes before I get into the detail explanation.

A soundscape is not actually created in hammer. It"s defined in .txt document in the same format as a vmt using the key/vale method. What you do make in hammer is a place holder (env_soundscape) which tells the engine where and which soundscape to play.

Soundscapes can be triggered one of two ways, by entering its radius or by being able to see the area it"s in. Once you trigger a soundscape it will not stop until another soundscape is triggered even if you leave its radius. Unlike an ambient generic where you can only hear it in its defined area.

Only one soundscape can be played at a time, when you enter another soundscapes radius you"re previous will fade out as the new one fades in.

These are some of the more basic differences between soundscapes and ambient generic.

Right so already you can see the use of a soundscape but there"s a whole lot more. Only being able to trigger one soundscape at a time would seem quite limiting in being able to create nice ambience. But the fact is one soundscape alone can play as many sound files as you want. So instead of creating four or five ambient generics to make a nice layered ambience, you only need to make one env_soundscape. So now you can see the advantage, but this isn"t why soundscapes are so amazingly cool.

Not only can soundscapes play numerous sound files at the same time. But they can also play all the sounds at random intervals of your choice so they can loop any sound, play it randomly and also they can play each other.

For example you have made a jungle map, finally set up a nice jungle ambience using your soundscape. You"re walking around your map and enter a cave. Now the cave has its own ambience and its own soundscape, so as you enter the cave the jungle ambience fades out and the cave ambience fades in. This would seem a little strange because the jungle ambience you were hearing so clearly not even 5 inches away has suddenly all gone. So to fix this you would have to add all the jungle ambience properties to the cave properties which would take a long time. But wait there"s another way. You can simply tell the cave soundscape to play the jungle ambience as a subsoundscape. Now as you enter the cave and the jungle soundscape fades out and the cave soundscape fades in, not only can you hear the cave ambience but also the jungle ambience. Amazing I hear you cry, but there"s still more to go.

You can also give each and every sound file its own unique properties these are:

"wave
The name of the wave file.

time
Time interval of the random event.

volume
Random volume interval (0-1).

pitch
Random pitch interval (50-250).

attenuation
Random attenuation of sound.

rndwave
A list of random wave files to choose from.

position
Position to use, if spatialized (0-7).


positionoverride

Forces all sub-soundscape positional sounds to occur at a single position originating from the entity at this index (0-7).

ambientpositionoverride

Forces all sub-soundscape ambient sounds to be spatialized at a particular position originating from the entity at this index.
Useful to make ambient sounds come "from a direction" (0-7)."

Plus give them DSP effects I could explain this but the sdk does it so much better:

"Sets the DSP effect to a particular room number. In general this should be set to 1, which is the "automatic" DSP. With this DSP the sound engine will attempt to discover the proper parameters based on the surrounding geometry. Setting the DSP to 0 will result in effectively turning DSP effects off. Using other pre-sets are only recommended for special cases. These pre-sets are declared in the ../hl2/scripts/dsp_preset.txt file."

And the presets are:

// DSP Effects
// 0 : "Normal (off)"
// 1 : "Generic"
// 2 : "Metal Small"
// 3 : "Metal Medium"
// 4 : "Metal Large"
// 5 : "Tunnel Small"
// 6 : "Tunnel Medium"
// 7 : "Tunnel Large"
// 8 : "Chamber Small"
// 9 : "Chamber Medium"
// 10: "Chamber Large"
// 11: "Bright Small"
// 12: "Bright Medium"
// 13: "Bright Large"
// 14: "Water 1"
// 15: "Water 2"
// 16: "Water 3"
// 17: "Concrete Small"
// 18: "Concrete Medium"
// 19: "Concrete Large"
// 20: "Big 1"
// 21: "Big 2"
// 22: "Big 3"
// 23: "Cavern Small"
// 24: "Cavern Medium"
// 25: "Cavern Large"
// 26: "Weirdo 1"
// 27: "Weirdo 2"
// 28: "Weirdo 3"

So effectively the soundscape system gives you the ability to mix sounds in anyway you want to create the perfect ambience without having to touch a signal piece of sound editing software. That is why in my opinion soundscapes are one of the most impressive elements that the source engine has to offer.


Signy
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby Spartan on Wed Mar 30, 2005 9:44 pm

I love you Signy. :smt056
Spartan
Veteran
Veteran
 
Joined: Sat Oct 09, 2004 2:58 pm

Postby YokaI on Thu Mar 31, 2005 12:52 am

cant you use mp3 files? or is that a no no? :(
YokaI
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 03, 2004 12:38 am

Postby KominAaa on Fri May 06, 2005 6:17 pm

cant you use mp3 files? or is that a no no? Sad


"E3_lab.LabSounds"
{
"dsp" "17"

"playlooping"
{
"volume" "0.5"
"pitch" "100"
"attenuation" "0"
"wave" "#music/HL2_song10.mp3"
"suppress_on_restore" "1" // don't restart this sound if loading a saved game
}
KominAaa
Dumpling
Dumpling
 
Joined: Fri May 06, 2005 6:16 pm
Location: France

Postby slayera on Fri May 06, 2005 6:28 pm

I have not fully explored this myself, but I don't think so. I have not exported a single soundscape yet that I saw a listing for mp3.

You might try

"mp3" "#music/HL2_song10.mp3"
Image


"When one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." -Robert Pirsig
User avatar
slayera
Veteran
Veteran
 
Joined: Wed Dec 08, 2004 3:15 am
Location: Near the world's only super volcano.

Postby -|Dizmas|- on Sun May 22, 2005 5:20 pm

Or you could just download a converter and convert it to a wave file.



In DM and CS:S I added a scripts folder and put my soundscape in that but it doesn't work. Any help?
-|Dizmas|-
Regular
Regular
 
Joined: Sun May 15, 2005 5:04 pm

Postby NOCTVRNVS on Tue Jul 26, 2005 4:18 am

I don't understand at all. This doesn't say how to properly implement a soundscape into your Half-Life 2 map. I am making a map for HL2:CTF in which I need the soundscape that was used in the coast areas of Half-Life 2, the one with seagulls and waves crashing. How do I do this, in the simplest way possible?
I am a big man, and I've got a big gun
User avatar
NOCTVRNVS
Been Here A While
Been Here A While
 
Joined: Sun Feb 13, 2005 12:50 am
Location: Stratford, Ontario

Postby BaRRaKID on Tue Jul 26, 2005 11:07 am

there isnt a easy way to start with. and this is part 1.. wich means that there are more parts of this toturial that may explain wath you want to know
I've no sign
BaRRaKID
Veteran
Veteran
 
Joined: Sun Oct 10, 2004 1:46 pm
Location: PORTUGAL!!!

Postby Signy on Tue Jul 26, 2005 11:38 am

^^ what he said :)

There are 4 parts to your soundscape adventure.
User avatar
Signy
Pheropod
Pheropod
 
Joined: Fri Nov 12, 2004 1:21 am
Location: UK

Postby mad_ferrit on Tue Jul 26, 2005 12:59 pm

Great intrtoduction man, thanks a lot... Can't wait to get some of these working :D

Any ideas when we'll be enlightened by Part Deux??? :twisted:
Image
User avatar
mad_ferrit
Regular
Regular
 
Joined: Thu Jan 06, 2005 11:02 am

Postby Signy on Tue Jul 26, 2005 1:15 pm

There are four parts up already :lol:

I was considering making part 5 which gives example of displacing the sound and stuff but i figured you guys could figure that out using the others.
User avatar
Signy
Pheropod
Pheropod
 
Joined: Fri Nov 12, 2004 1:21 am
Location: UK

Postby NOCTVRNVS on Tue Jul 26, 2005 6:58 pm

Anyway I figured it out by myself, using some of the information here I was able to figure out the whole workings. Thanks a lot for the tutorial to get me started! My map seems so lifelike now, it's really surprising what an affect something so simple can have. I'm making a map where you are high on a dam, with water on both sides. I used the "distant shore" soundscape to make the sounds of waves crashing against the dam, it works beautifully.
I am a big man, and I've got a big gun
User avatar
NOCTVRNVS
Been Here A While
Been Here A While
 
Joined: Sun Feb 13, 2005 12:50 am
Location: Stratford, Ontario

Postby Rocket_Robinhood on Fri Nov 11, 2005 1:10 am

if you walk into an ambient generic will the soundscape stop?
User avatar
Rocket_Robinhood
Veteran
Veteran
 
Joined: Sat Oct 01, 2005 10:36 pm
Location: Toronto Ontario

Postby slayera on Fri Nov 11, 2005 4:47 am

Rocket_Robinhood wrote:if you walk into an ambient generic will the soundscape stop?


No. You cannot walk into an ambient generic, you can set the radius to be heard and you can trigger on/off with an entity.
Image


"When one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." -Robert Pirsig
User avatar
slayera
Veteran
Veteran
 
Joined: Wed Dec 08, 2004 3:15 am
Location: Near the world's only super volcano.

Return to Tutorials

Who is online

Users browsing this forum: No registered users