anachronox-sdk/docs/planet/23.html
2002-01-21 00:00:00 +00:00

213 lines
7.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<TITLE>Anachronox Editing Documentation</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#EFEFEF" LINK="#00FFFF" ALINK="#FFFFFF" VLINK="#05F3D0">
<CENTER>
<P>
<FONT FACE="Helvetica">
<FONT COLOR="#0055DD"><B>Tutorial 23: Placing Sounds on Entites</B>
</FONT>
</CENTER>
<P>
<HR>
<BR>
<FONT COLOR="#0055DD">
SOUNDONCE=[path, channel (1-4), flush, volume, attenuation]
SOUNDLOOP=[path, channel (1-4), flush, volume, attenuation]
SOUNDCLEAR<BR>
SOUNDCLEAR=[channel]<BR>
SOUNDFADE=[channel, startvalue(0-1), endvalue(0-1), time in ms]<BR>
SOUNDPITCH=[channel, startvalue(1 is default) , endvalue, time in ms]
</FONT>
<P>
<B>USEFUL CONSOLE COMMANDS</B><BR>
Msound_perf (1-4)
<P>
<B>SOUNDONCE & SOUNDLOOP</B><BR>
NEW SCRIPT.<BR>
Ready to have some automap fun?
<P>
Place an automap on a path. Make sure it is still. At 4 secs make it move to a new point where it comes to rest at 10 secs. And stay there for 4 seconds and then moves again. Play this!
<P>
Now to add some sound.
<P>
At 0.1 put a node<BR>
Soundonce=cine\automap\automap_idle.wav,1,1,1,1
<P>
Play this! Woohhooo….. SOUND! But the sound was so fast.
<P>
So Lets LOOP that sound. Change the node to read<BR>
Soundloop=cine\automap\automap_idle.wav,1,1,1,1
<P>
Play this.
<P>
Now what do all those numbers mean?
<P>
<B>CHANNEL</B><BR>
The First number is the CHANNEL. Any entity can be given 4 Sounds!
<P>
Drop a cmd node at 1.0 and have it read<BR>
Soundonce= soundonce=battle\mystech\bane\m1fx_bane_chargeup1.wav,2,1,1,1<BR>
Play this
<P>
Drop a cmd node at 1.1 and have it read<BR>
Soundloop= battle\mystech\nuts\mystech_ring_eerie3.wav,3,1,1,1
<P>
Play this. Sounds like garbage.
<P>
NOTE: IF YOU START PUTTING MULTIPLE SOUNDS ON DIFFERENT CHANNELS, YOU WILL HAVE TO KEEP TRACK OF THEM ALL!!!!!!!
<P>
Delete the nodes at 1.0 & 1.1
<P>
<B>FLUSH</B><BR>
The Second number is the FLUSH value. It works JUST LIKE the flush command for animations.<BR>
1 = Play sound IMEDIATELY<BR>
0 = WAIT for the previously (SAME TRACK) sound to finish Playing.
<P>
Drop a cmd node at 4.0 secs and have it read<BR>
Soundonce=cine\automap\automap_idle2moving.wav,1,1,1,1
<P>
Drop a node at 4.1<BR>
Soundloop=cine\automap\automap_moving.wav,1,0,1,1
<P>
Play this. Notice the moving loop sound WAITS for the idle_2_moving sound to finish playing.
<P>
Drop a node at 9.6<BR>
Soundonce=cine\automap\automap_moving2idle.wav,1,1,1,1
<P>
Drop a node at 9.7<BR>
Soundloop=cine\automap\automap_idle.wav,1,0,1,1
<P>
Play this. Neat eh?
<P>
<B>VOLUME</B><BR>
That 3rd number is VOLUME. From 0 to 1.<BR>
Change all the nodes so that the volume is set to .1<BR>
Play it
<P>
NOTE: IT seems to me that high pitched noises play louder than bassy sounds. So explosions usually are at 1.0 and high pitched sounds (like the automap) I put at .2
<P>
NOTE: Make sure all the volume values are the same, otherwise the sounds will pop.
<P>
<B>ATTENUATION</B><BR>
The 4th number is attenuation. A little trickier than volume, Attenuation is how strong a sound is. Or how far away you are will a sound still be heard.
<P>
The values are kinda like this
<P>
0 heard throughout map<BR>
1 <BR>
2 upto 100 feet ???<BR>
3 <BR>
4 a whisper<BR>
<P>
this is a best guess.
<P>
Change all the attenuation values on the automap to .1<BR>
They should look like this<BR>
Soundloop=cine\automap\automap_moving.wav,1,0,1,.1
<P>
Play the script and make sure you (the Camera) are standing still and listen how the sound of the automap drops off as it moves away.
<P>
Sometimes tweaking between volume and attenuation is necessary.
<P>
A PHILOSOPHICAL QUESTION: If a sound is played on a script and the camera is nowhere near the hearing distance, does that sound actually get played????
<P>
Unknown.
<P>
NOTE: The more sounds you play, the MORE MEMORY is BEING USED to put those wavs in memory. So be conscious!
<P>
<B>SOUNDCLEAR</B><BR>
SOUNDCLEAR=[channel]
<P>
To quickly turn off a sound enter the soundclear cmd. To turn off a specific channel then type soundclear=[channel]<BR>
Simple. <BR>
NOTE: This will turn off a sound completely and is very noticeable. So use the soundfade cmd.
<P>
SOUNDFADE=[channel, startvalue(0-1), endvalue(0-1), time in ms]
<P>
To fade specific sounds up and down. Very useful on looping sounds.<BR>
A LOT of the time I would turn on Looping sounds at such a low volume and then fade them up. This is a lot more pleasing to the ear than just having em start.
<P>
NEWSCRIPT<BR>
Place an ob_automap<BR>
At 0.1 put a cmd node<BR>
<P>
Soundloop=cine\automap\automap_idle.wav,1,1,.01,1
<P>
This will technically PLAY the sound, you just wont be able to hear it. <BR>
NOTE: Remember to keep track of sounds like this.<BR>
NOTE: putting the volume at 0 WILL NOT PLAY THE SOUND!!!!
<P>
At 1.0 put a cmd node<BR>
Soundfade=1,0,1,2000
<P>
Play this. This will fade up the sound in 2 seconds.
<P>
Now put a cmd node at 4.0 seconds<BR>
Soundfade=1,1,.3,4000
<P>
Play this. Now the sound will take 4 seconds to get to a low volume level and stay there
<P>
Now put a cmd node at 9.0 seconds<BR>
Soundfade=1,1,.3,4000
<P>
Play this. Notice the Pop in audio. OOOPPPSSSSSY! You must remember what level you had set it.<BR>
Change the node at 9.0 seconds to read<BR>
Soundfade=1,.3,0,4000
<P>
Play it. Sounds better!<BR>
NOTE: Dont FORGET to SOUNDCLEAR that sound. Even though you cant hear it…. Its still playing.
<P>
A useful console command<BR>
Msound_perf (1-4)<BR>
I use msound_perf 3. that will display ALL sounds that are playing. With Volume and Attenuation noted in the front of the sound path. Handy! Check it Out! (be sure to set it back to 0 to remove it).
<P>
<P>
SOUNDPITCH=[channel, startvalue(1 is default) , endvalue, time in ms]
<P>
NEWSCRIPT<BR>
Put an ob_automap<BR>
At .1 put cmd node<BR>
Soundloop=cine\automap\automap_idle.wav,1,1,1,1
<P>
At 1.0 put a cmd node<BR>
Soundpitch=1,1,3,4000
<P>
Play this. Neat huh! This pitches UP the sound in 4 seconds. Change the node to<BR>
Soundpitch=1,1,3,400
<P>
Change the Node to read<BR>
Soundpitch=1,3,1,4000
<P>
Notice that this was NOT a smooth pitch. ALL SOUNDS have a default pitch of 1. You immediately started at 3, which has a noticeable change in sound. Change it back to<BR>
Soundpitch=1,1,3,4000<BR>
At 5.0 put a cmd node<BR>
Soundpitch=1,3,1,400
<P>
Play this. NO SOUND IS SAFE!!!!
<P>
NOTE: Sometimes you may wanna START a sound at a certain pitch. The best way is this<BR>
NEWSCRIPT<BR>
Put an ob_automap<BR>
At .1 put cmd node<BR>
Soundloop=cine\automap\automap_idle.wav,1,1,.01,1 <BR>
At .2 put a cmd node<BR>
Soundpitch=1,3,3,100<BR>
This will put the sound immediately at 3 in .1 of a second.<BR>
At .3 put a cmd node<BR>
Soundfade=1,0,1,100<BR>
<P>
This is a little complex, but it works.
<P>
HONE YOUR SKILLZ<BR>
Put 4 sounds (each on their own channel) on the automap. Fade them, pitch them, all at different times. As one sound pitches up, have the other pitch down. Make sure that you soundclear each one by the end of the script.
See what I mean by KEEPING TRACK of your sounds.
<P>
<P>&nbsp;<P>
</BODY>
</HTML>