Sounds inside a subworld?

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!

Sounds inside a subworld?

Postby ametist » Sun Apr 05, 2009 3:11 am

Subworlds again :) I have this nice little subworld - a boatride, which works very well. To get it even more realistic I would like to have the water lapping-sound to be heard inside the subworld, and it doesn't... That water-lapping sound region works fine everywhere else, just don't when the avatar is inside the subworld.
Do I have to write that sound into the alscript for the boatride itself? If so, could someone point me to where I should 'place' that within the alscript, please? Or if not, what do I do?
Thanks.
Here's my current alscript:
Show Spoiler
User avatar
ametist
 
Posts: 360
Joined: Fri Dec 28, 2007 6:55 am

Re: Sounds inside a subworld?

Postby D'Lanor » Sun Apr 05, 2009 11:37 am

First off, sounds are not tied to subworlds. Subworlds are for physicals. Yours probably behaves like that because your sound is triggered by something physical: a region.

For lapping water sounds there are probably better solutions. Like setting it up as a continuous loop and confining it with a softvolume. Or (if your lake is round) making it a 3D sound which fades away from the lake.

But if you want to keep your current setup you can add it as a soundmsg within your AnimRideFW and AnimRideBW responders. Both with the - play command:

Code: Select all
                      - type: soundmsg
                        params:
                            receivers:   
                              - 0011:<sound emitter>
                            cmds:
                              - play
                              - setvolume
                            volume: 1 #match volume of sound emitter
                        waiton: -1


It is a bit of a sloppy workaround but it should work.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Sounds inside a subworld?

Postby ametist » Tue Apr 07, 2009 12:04 am

Thanks D'Lanor!
I haven't had time to try your suggestions yet, but I will! Yes, I have the sound triggered by a region right now, the region is compassing the whole lake area. The subworld is inside said region. I'm going to test softvolumes first - haven't done that yet, and aslo adding to the alscript for another test. I'm still learning which ways to go about :)
User avatar
ametist
 
Posts: 360
Joined: Fri Dec 28, 2007 6:55 am

Re: Sounds inside a subworld?

Postby diafero » Tue Apr 07, 2009 4:38 am

I guess you will need a region tied to the subworld, too, as you are not in the non-subworld region anymore as soon as you enter the subworld. Even though it is "in there", it might just be ignored for being in the wrong context, i.e. not in the subworld.
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Sounds inside a subworld?

Postby boblishman » Tue Apr 07, 2009 4:49 am

yes... if you give the sound region a subworld property it will work ... but you are still advised to use a softvolume to "contain" the sound ... or you may run into "problems" with a multiplayer environment in the (hopeful) future ... ;)
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain


Return to Building

Who is online

Users browsing this forum: Google [Bot] and 2 guests