GoPinball.com
http://www.gopinball.com/forum/

ball rolling sound with BAM ball tracking
http://www.gopinball.com/forum/viewtopic.php?f=86&t=6580
Page 1 of 6

Author:  smoke [ Sat Jan 27, 2018 10:45 am ]
Post subject:  ball rolling sound with BAM ball tracking

here is the new version with hit sound for guides and surface.
for each guide/surface you have to check "generate hit event"

and add a code like this (for guide9 ):

Sub Guide9_Hit()
metalGuideHitBBOXHeight Guide9,65,230,167,291,0.0
End Sub

where 65,230 (X,Y) and 167,291 (X,Y) define the boundary box enclosing the guide (use the editor coordinate)
and 0.0 is the Z level (0.0 for playfield)


you can be very detailled by setting boundaryboxe for each component or use a global boudarybox shared for all of them.

but there is a catch, if you use a global boundarybox for all component, a single ball play will be correctly handled but multiball may play the incorrect panning....


in the demo the upper part has dedicaced boudary box shown when hit
the lower part use the same global boudary box shown when hit

Author:  Gimli [ Sat Jan 27, 2018 11:49 am ]
Post subject:  Re: ball rolling sound with BAM ball tracking

Smoke you are totally insane !!!! :shock: :shock:
Wow!!!
That sound is perfect!!

Using "xBAM_BallCloseTo" command for assigning sounds to Balls is a great idea.

I use the xBAM_BallCloseTo to assign objects to invisible balls...but I never thought of using sounds that way

Do you have to disable the sounds during multiball?


Very cool

Author:  GeorgeH [ Sat Jan 27, 2018 3:07 pm ]
Post subject:  Re: ball rolling sound with BAM ball tracking

I agree with Gimli. This is really cool! The tables I have played that have this sound using triggers don't really sound very authentic. This works much better.

You should post this on the following topic. We're trying to put together a list of BAM functions and commands:

viewtopic.php?f=86&t=6569

If you know of any other codes, you might add them as well, like the ones you used to create Tales of the Arabian Nights.

George

Author:  Popotte [ Sat Jan 27, 2018 4:21 pm ]
Post subject:  Re: ball rolling sound with BAM ball tracking

Great work from smoke, but I have to say that sound rolling is just good for good old EM (or early SS). For later pinballs, you don't just ear ball rolling (except maybe at ball launch) because music, animations, ... And I play a lot real pinballs.
But, great work indeed!

Author:  blue [ Sat Jan 27, 2018 4:24 pm ]
Post subject:  Re: ball rolling sound with BAM ball tracking

Fantastic Smoke. I was going to do something like that as well, you beat me to the punch. :)

Author:  smoke [ Sat Jan 27, 2018 8:27 pm ]
Post subject:  Re: ball rolling sound with BAM ball tracking

the code might be handle multiball but the sound will be associated with the fastest ball.

you can tune the maximum volume (volNormLevel const) of the ball for modern pinball so you will notice the sound less but still here to add some realism.

here is a new version because i forgotto add an extra line in drain_hit to handle destroyed ball.

the code was inpisred by the one written by JPSalas for a visual pinball table

Author:  blue [ Tue Jan 30, 2018 4:50 am ]
Post subject:  Re: ball rolling sound with BAM ball tracking

Hi Smoke

Just having a look at the code right now, seems easy enough. Are you going to be working on the Ball shadow that VPX uses as well?

Author:  miownkhan [ Tue Jan 30, 2018 11:57 am ]
Post subject:  Re: ball rolling sound with BAM ball tracking

Nice :D

Thanks smoke

This works great, I tried it with Dracula.

I was wondering, would be possible for Rafal to add it as a BAM addon.
This way it would be a feature that would work with all tables new and old.

Have it part of bam , no end user scripting
under Addons

just an On\Off toggle switch
and a volume setting
maybe select a rolling sound out of a set of predefined sounds

Author:  franzleo [ Wed Jan 31, 2018 12:42 pm ]
Post subject:  Re: ball rolling sound with BAM ball tracking

smoke wrote:
.....I've found a code in a visual pinball that emulate the sound of a rolling ball very well!......


I did not understand anything about how it works :oops: :oops: , but you did a great job.
Greetings

Gianfranco

Author:  Popotte [ Wed Jan 31, 2018 6:22 pm ]
Post subject:  Re: ball rolling sound with BAM ball tracking

So, thanks too to Juan Paolo (JPSalas).

Page 1 of 6 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/