ravarcade
Pinball Wizard
- Joined
- Feb 8, 2020
- Messages
- 101
- Reaction score
- 232
- Points
- 49
- Favorite Pinball Machine
- AFM
Support File - BAM - BAM (Better Arcade Mode)
Better Arcade Mode (BAM) is an add-on that improves and extends functionality across Future Pinball and other FP-related & pinball-related systems. It's required by many modern FP tables, which will not work properly (or at all) unless BAM is...
pinballnirvana.com
Changes:
- ray cast shadows can be enable per table (not global)
- if light source is inside ball it will not cast shadow
- script: LightExt.EnableRayCastShadows (only for flashers)
You can disable shadows for selected flasher with:
FlasherNameExt.EnableRayCastShadows = False
Value of variable can be read too:
If FlasherNameExt.EnableRayCastShadows Then do something
If Not FlasherNameExt.EnableRayCastShadows Then do something
or toggled On/Off
FlasherNameExt.EnableRayCastShadows = Not FlasherNameExt.EnableRayCastShadows
- script: xBAM.RayCastShadows.Enable
Enable shadows:
xBAM.RayCastShadows.Enable = True
Check if not enabled (and enable if not):
If Not xBAM.RayCastShadows.Enable Then xBAM.RayCastShadows.Enable = True
- script: xBAM.RayCastShadows.Sharpness
Can be read and set:
xBAM.RayCastShadows.Sharpness = 0.8
xBAM.RayCastShadows.Sharpness = xBAM.RayCastShadows.Sharpness - 0.2
- script: xBAM.RayCastShadows.DarkLevel (defaul value = 0.0)
Can be read and set:
xBAM.RayCastShadows.DarkLevel = 0.0
xBAM.RayCastShadows.DarkLevel = xBAM.RayCastShadows.DarkLevel - 0.2
I don't recomend to set values lower than 0.0. With value above 0.0 shadow will still get some light.
- script: xBAM.RayCastShadows.Set sharpness, darkLevel
Use it to enable Ray Cast Shadows and set desired params from script. If you skip darkLevel it will be set to zero.
xBAM.RayCastShadows.Set 0.8
Code below will check if ray cast shadows are enabled. If not will enable it and set default values, but if they are already enable, user will be able to change params.
If Not xBAM.RayCastShadows.Enable Then xBAM.RayCastShadows.Set 0.8 -0.1
Last edited by a moderator: