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 » Thu Jan 24, 2008 12:35 pm

Please do, as I can't get it to work no matter what I do. The original emitter works just fine, and the 2nd one for the generator works fine. But when I put in the 3rd one, using the same sound file as the first emitter (bugloop) it doesn't work. No errors, just now sound from it when I link in, but the first one is working fine.

EDIT: here's the alcscript for it:
Code: Select all
bugsound1:
   type: soundemit
   sound:
      flags: loop | start | 3d
      file: bugloop
      volume: 1
      type: SoundFX
      maxfdist: 100
      minfdist: 15
         
gensnd:
   type: soundemit
   sound:
      flags: loop | start | 3d
      file: engine_loop
      volume: 0.1
      type: SoundFX
      maxfdist: 25
      minfdist: 5
         
bugsound2:
   type: soundemit
   sound:
      flags: loop | start | 3d
      file: bugloop
      volume: 1
      type: SoundFX
      maxfdist: 100
      minfdist: 15


Now, the other thing I noticed:
This morning when I loaded up my blend file, I added that emitter that I'm having problems with. But when I went to export, I got an error telling me that it was missing the generator wav file. I was like :?: because it exported and worked just fine last night.

I went to the audio window, and the only sound it listed was the bugloop one. So I added the generator wav file again, and this time it exported just fine.

Soooooo, is this just a glitch? Or right now do you have to work all your sound files at once, or if you do later work, you'll have to remember to go back and add the sound files in the audio window again, each time you export, IF you've saved and exited Blender?
"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 2:02 pm

I would say the missing sounds are some random glitch you're having, except that it happened to me too. Blender seems to like to forget about sounds, and I often have to re-open them after save/reload cycles.

Anyway, I just did a test with two emitters referencing one sound file and it worked just fine. However, they were both tied to separate regions, and were not set to play simultaneously. Yours apparently are.

If you can, try confining the two emitters to separate areas, or possibly, try setting the "type" on one of them to something else, like "backgroundmusic".
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 » Thu Jan 24, 2008 2:19 pm

oooooo.......okay!

You might want to mention that in the wiki (both things, the using a region, etc, and also how sometimes Blender does it's thing).

I was about to try using a trigger region next, but got side tracked building something else, and decided to wait and hear from you.

Thanks for the help!
"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 9:42 pm

Updated with the Blender quirk, but I'd like to wait on some more solid info before putting up a fix to your multi emitter issue. (ie, when you say it's fixed)
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 » Fri Jan 25, 2008 9:17 am

IT worked!!!! And worked great!!

Okay, as it seems that, adding more than one sound emitter that uses the same sound file, for some reason doesn't seem to want to work. Rather, the First emitter will work just fine, but not the 2nd.
However, doing what Nadnerb said, putting in the 2nd emitter using the same sound file as the first one, but then putting in a trigger region around it, kind of FORCES it to work!

In some ways it feels like having more control over sound doing it this way anyways, I kinda like it.

Okay, just wanted to let those that were watching this thread that doing this will work 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

Previous

Return to Building

Who is online

Users browsing this forum: No registered users and 6 guests