Author |
Message |
smoke
|
Post subject: ball rolling sound with BAM ball tracking Posted: Sat Jan 27, 2018 10:45 am |
|
Joined: Fri Jun 28, 2013 4:46 pm Posts: 356
|
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
You do not have the required permissions to view the files attached to this post.
Last edited by smoke on Sat Dec 14, 2019 1:33 pm, edited 2 times in total.
|
|
 |
|
 |
Gimli
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Sat Jan 27, 2018 11:49 am |
|
Joined: Mon Jan 27, 2014 12:36 pm Posts: 2859 Location: Ontario, Canada
|
Smoke you are totally insane !!!! 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
|
|
 |
|
 |
GeorgeH
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Sat Jan 27, 2018 3:07 pm |
|
Joined: Thu Aug 16, 2012 11:12 pm Posts: 2524 Location: Arkansas, USA
|
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=6569If 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
|
|
 |
|
 |
Popotte
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Sat Jan 27, 2018 4:21 pm |
|
Joined: Fri Jul 02, 2010 4:50 am Posts: 1197 Location: Paris - France
|
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!
_________________ Les cons ça ose tout. C'est même à ça qu'on les reconnaît.My tables avalaible at http://www.pinsimdb.org/fpreleases/ and http://www.irpinball.org/ Le prix s'oublie, la qualité reste
|
|
 |
|
 |
blue
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Sat Jan 27, 2018 4:24 pm |
|
Joined: Tue May 01, 2012 11:13 pm Posts: 415 Location: Abbotsford
|
Fantastic Smoke. I was going to do something like that as well, you beat me to the punch. 
_________________ _____________________________________ Latest projects and rants at My Facebook Page_____________________________________ Latest Project: fpxEngine
|
|
 |
|
 |
smoke
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Sat Jan 27, 2018 8:27 pm |
|
Joined: Fri Jun 28, 2013 4:46 pm Posts: 356
|
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
Last edited by smoke on Sat Dec 14, 2019 1:31 pm, edited 1 time in total.
|
|
 |
|
 |
blue
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Tue Jan 30, 2018 4:50 am |
|
Joined: Tue May 01, 2012 11:13 pm Posts: 415 Location: Abbotsford
|
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?
_________________ _____________________________________ Latest projects and rants at My Facebook Page_____________________________________ Latest Project: fpxEngine
|
|
 |
|
 |
miownkhan
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Tue Jan 30, 2018 11:57 am |
|
Joined: Fri Nov 22, 2013 8:25 am Posts: 166
|
Nice 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
|
|
 |
|
 |
franzleo
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Wed Jan 31, 2018 12:42 pm |
|
Joined: Sun May 08, 2011 4:57 pm Posts: 1071 Location: Turin-ITALY
|
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  , but you did a great job. Greetings Gianfranco
|
|
 |
|
 |
Popotte
|
Post subject: Re: ball rolling sound with BAM ball tracking Posted: Wed Jan 31, 2018 6:22 pm |
|
Joined: Fri Jul 02, 2010 4:50 am Posts: 1197 Location: Paris - France
|
|
 |
|
 |
|