Adding Sounds

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Re: Adding Sounds

Postby andylegate » Wed Jan 23, 2008 6:05 am

Yah, with the sound regions, I'll be able to do all sorts of things I've wanted to (like have the sounds of a generator, but only near it).

Okay, back to the question at hand:

turns out that it's really the scripting that is going to put the sounds in your Age. I just tried it as Nadnerb shows in the Wiki, and you're right. It does NOT play back in Blender. I mean the cursor moves, but I hear nothing.

However, when I exported the Age, the sound I put in that way, did work.

But, to me, the Video Sequencer is more important, as you can see several sounds listed all at once in one window, AND you can play the sounds back to make sure you've got the right one. (Alt-A will play back the audio in the Video Sequence window).
I think that option should be listed in the Wiki.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Adding Sounds

Postby Nadnerb » Wed Jan 23, 2008 2:02 pm

Ok, updated the wiki to mention both methods. Turns out they both add the sound file to blender's internal file structure, so the plugin can find it in both cases.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Adding Sounds

Postby andylegate » Wed Jan 23, 2008 2:09 pm

hehe, excuise the double post.

Okay, I've fighting with sounds all afternoon today, trying to get things to work. Unfortunately things are not going to well.

First I added a generator to my Age, put in a sound emitter, put in the alc script for 3d sound, set the min and max distances..

While I was at it, I realized that I could set my bug sound background as 3d also, so that the sound fades away when I want them too.

Started to do a sound trigger with the Soundregion........but I'm afraid the tutorial is lacking for this. After setting up the region.....how do I point it to the right sound file?

Back to my problems. Exported, but got an assertion error right away on the sound for my generator. Not sure why, but it REALLY did not like my wave file. So to test things out quickly, I used on in Uru, just to test things, and it then exported fine.

Linked into the Age, and you could hear the generator purring away just fine. Get's louder as you get closer, switches left and right speakers as you turn, great 3d sound.

Get far enough away and the sound of the generator fades away. Cool.

Except not cool. Can't hear ANY of my bug sounds. So, just incase the generator sound is the cause, I went back and removed the sound emiter for it and the scripting. Exported, went back in.......again, no bug sounds at all.
Getting highly annoyed (because I have to export, copy files, load up Uru, link in just to check things like this), I removed all but one of the emitters. Again, still now sound! Triple checked the scripting, and they look just fine.

Changed the scripting back to just background sound (no 3d), and bingo, I've got my bugs back again.

So I guess this brings up some questions:

How many emitters can we have?
How many 3d emitters can we have?
Can the 3d emitters overlap?

Triggered sounds using sound regions. Can we get a little more detailed explination other than simply put in a generic region and call it a sound region with your own unique name? Like, how to indicate what sound to play? (I tired adding things to the script, including defining the soundemitter to a file, but though it exported fine, the sound would never trigger.).
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Adding Sounds

Postby Nadnerb » Wed Jan 23, 2008 2:19 pm

Started to do a sound trigger with the Soundregion........but I'm afraid the tutorial is lacking for this. After setting up the region.....how do I point it to the right sound file?

You don't point the region to a sound file, you point the region to a sound emitter, which, in turn, points to a sound file. In short, Add the sound like you did before, and then add the region to control the emitter.

as for multiple emitters/sounds, I'm not sure if anyone has actually tried that before. >.>
Last edited by Nadnerb on Wed Jan 23, 2008 2:43 pm, edited 1 time in total.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Adding Sounds

Postby andylegate » Wed Jan 23, 2008 2:21 pm

That's what I did. Didn't work. No sound was triggered.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Adding Sounds

Postby Nadnerb » Wed Jan 23, 2008 3:07 pm

Well, I just tested an age with two sound emitters and two sound regions, and it worked, so it is possible. Since you can hear both sounds (albeit not at the same time so far :P) I'll assume all your sounds are in their directories. So:

Where do you start? Is it inside or outside a sound region?
Are all your sound emitters and sound regions listed in the logs. (just do a "find" for their names in the log, regions should appear twice, once in quickscripts at the top, and once when they are exported. The emitters once each.)
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Adding Sounds

Postby andylegate » Wed Jan 23, 2008 3:14 pm

hehehe........ BTW- thanks for getting more detailed on the tutorial........goes a long way to helping.

Not sure what the heck is going on, but suddenly my original sound stopped working too!

I decided to sort of start from scratch again, and deleted all the other emitters, and the scripting for them, except my original one. I went to export, and it gave me an error saying it couldn't find my .wav file.

Frowning, I went and looked, and there it was plain as day (in the folder with my age's blend file).

I opened up the Video sequence (and the Audio Window) and it showed my wav file just fine.

Resisting the urge to pick up my flat screen and throw it across the room, I instead deleted the last and final emiter, deleted the scripting for it. Deleted the wav file in the Video sequence, and then saved. Exited Blender.

Now, try again. Opened up Blender, then my Age. Went through and put in my single emitter, loaded the sound up in the Audio Window. Put in the scripting for the emitter (only I made it 3d this time). Saved, and exported with my fingers crossed. Exported fine.

Loaded up Uru and linked in. Bug sounds great! Have nice long fade off and 3d sound for it.

So...... :? I don't know WHAT I did, but I messed it up bad I guess. I'm going to try adding my other stuff again slowly.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Adding Sounds

Postby andylegate » Wed Jan 23, 2008 3:26 pm

Oh SURE!!! Now everything wants to work!.........pppppppptttttthhhhhh!

*sigh* been a long day, been at this since 7:30 am and it's going on 5:30 pm...........I'm not sure what I did before, but it seems to be working now.......Time to take a break and fix dinner.

Besides, my butt is numb from being in my computer chair too long...... :roll:
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Adding Sounds

Postby andylegate » Thu Jan 24, 2008 10:01 am

Okay, have another question about the sounds......

Nadnerb.....when you put in your sounds.....did you have more than one emitter using the same sound file? Have you put in a sound emitter using a sound file, and then later, like the next day, add another emitter using the same sound file?

I've tried this, and the 2nd emitter will not work.......unless I pick a different sound file. Then it works just fine.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Adding Sounds

Postby Nadnerb » Thu Jan 24, 2008 12:29 pm

Nope, never tried two emitters-same file. I can give that a shot though.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

PreviousNext

Return to Building

Who is online

Users browsing this forum: No registered users and 3 guests

cron