Jump to content



Photo
- - - - -

Finding a Base for Future Pinball


  • Please log in to reply
48 replies to this topic

#21 GeorgeH

GeorgeH

    Pinball Fan

  • Members
  • PipPipPipPip
  • 861 posts
  • Location:Arkansas, USA

  • Flag: United States of America

  • Favorite Pinball: Black Rose

Posted 09 May 2020 - 06:19 PM

GoPinball does load very slowly.  It might be worth it to navigate to what you need and copy the content over here.  I'm not even sure where you save tutorials here.

 

There is an old feature that I think only Smoke used before I discovered it on TOTAN.  I call it script lighting.  You just add a texture of any object to the script and you can adjust the lighting and shine on the object.  

 

'[BAM] !texture = HeMan Ripper texture 

'[BAM] !normalMap = lampNM
'[BAM] !shininess = 0.55
'[BAM] !specularLevel = 0.55
'[BAM] !specularBalance = 0.01
'[BAM] !normalMapScale = 1.0
 

!texture is the name of the texture (color map).

!normalMap You can enter the name of the normal map here but it is not needed if you follow the convention of naming                                        the textures colormap/normalmap.

!shininess can reduce the amount of glare or increase reflections off the object.  

!specularLevel is the lighting and the number is the brightness.

!specularBalance I tried this one but didn't like it so I always set it to 0.01

!normalMapScale I always set this to 1.0

 
The line with  !normalMap is optional and I usually delete it.  You can use this code on any texture whether it has a bump map or not.  Just repeat the same content above for each texture.  I think Wild would like using this because it is pretty light on system resources.  
 
George


#22 TerryRed

TerryRed

    Pinball Wizard

  • Silver Supporter
  • 2,011 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 09 May 2020 - 07:11 PM

I posted a quick gameplay video of Nip It on my channel

 

https://youtu.be/JTZZEA75i1M

 

Neat update guys.


 

GoPinball does load very slowly.  It might be worth it to navigate to what you need and copy the content over here.  I'm not even sure where you save tutorials here.

 

There is an old feature that I think only Smoke used before I discovered it on TOTAN.  I call it script lighting.  You just add a texture of any object to the script and you can adjust the lighting and shine on the object.  

 

'[BAM] !texture = HeMan Ripper texture 

'[BAM] !normalMap = lampNM
'[BAM] !shininess = 0.55
'[BAM] !specularLevel = 0.55
'[BAM] !specularBalance = 0.01
'[BAM] !normalMapScale = 1.0
 

!texture is the name of the texture (color map).

!normalMap You can enter the name of the normal map here but it is not needed if you follow the convention of naming                                        the textures colormap/normalmap.

!shininess can reduce the amount of glare or increase reflections off the object.  

!specularLevel is the lighting and the number is the brightness.

!specularBalance I tried this one but didn't like it so I always set it to 0.01

!normalMapScale I always set this to 1.0

 
The line with  !normalMap is optional and I usually delete it.  You can use this code on any texture whether it has a bump map or not.  Just repeat the same content above for each texture.  I think Wild would like using this because it is pretty light on system resources.  
 
George

 

 

 

I think those are some of the same new features being added to Image Lists as well.



#23 gimli246

gimli246

    Enthusiast

  • Members
  • PipPipPip
  • 278 posts

  • Flag: Canada

  • Favorite Pinball: Monster Bash

Posted 09 May 2020 - 07:34 PM

Thanks for posting Nip-it ! Terry.

It is a very simple table and we are honoring the memory of our friend Franzleo .

And it was fun using some of the newer BAM features on an older table :)



#24 wild

wild

    Enthusiast

  • Members
  • PipPipPip
  • 53 posts

  • Flag: Italy

  • Favorite Pinball: batman

Posted 09 May 2020 - 08:17 PM

 

I posted a quick gameplay video of Nip It on my channel

 

 

Thanks for posting Nip-it ! Terry.

It is a very simple table and we are honoring the memory of our friend Franzleo .

And it was fun using some of the newer BAM features on an older table :)

 

ok, here is the first table published here-------->https://www.vpforums...&showfile=14978

 

maybe I forgot or missed something ..., but I don't see it on the front row in Future Pinball - New Releases, section.

 

Ok.....I want to see the developments, and what will come out......then
if all goes well......(I hope),I will publish other tables, including Nip-it, in memory of Gianfranco(franzleo),due time.

Edited by wild, 09 May 2020 - 08:26 PM.


#25 TerryRed

TerryRed

    Pinball Wizard

  • Silver Supporter
  • 2,011 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 09 May 2020 - 08:20 PM

It normally takes a while for the table to be approved, so for everyone else the link won't work right away until then.



#26 GeorgeH

GeorgeH

    Pinball Fan

  • Members
  • PipPipPipPip
  • 861 posts
  • Location:Arkansas, USA

  • Flag: United States of America

  • Favorite Pinball: Black Rose

Posted 10 May 2020 - 02:00 AM

I think those are some of the same new features being added to Image Lists as well.

 

An Image List is just one or more textures.  It stands to reason that Rav might use the same coding.  

 

The coding makes objects look nice.  



#27 gimli246

gimli246

    Enthusiast

  • Members
  • PipPipPip
  • 278 posts

  • Flag: Canada

  • Favorite Pinball: Monster Bash

Posted 10 May 2020 - 12:31 PM

 
I thought I told you why I didn't share it, via pm?
 

but rav, he sent me a beta, which advised me not to share,
.. including:

1)xBAM.CreateAllExt for the LughtImage
2)more than MP...16 to 48,
3)new feature for MP, but I don't remember what it was (the Gopimball site does not work to go and see)
4)In ball setting enable the xBAM.Lights.Brightness = xxx true/false via script....for custom ball.....because in SetLightsDarkNight......the ball see to much dark,,,,here the reason xBAM.Lights.Brightness = 2000 ....for example.

5)and more thing


VERY COOL its great to see rav adding new stuff to BAM even while working on the new project

Edited by gimli246, 10 May 2020 - 12:37 PM.


#28 wild

wild

    Enthusiast

  • Members
  • PipPipPip
  • 53 posts

  • Flag: Italy

  • Favorite Pinball: batman

Posted 10 May 2020 - 12:43 PM

 

even while working on the new project

 

what new project?



#29 gimli246

gimli246

    Enthusiast

  • Members
  • PipPipPip
  • 278 posts

  • Flag: Canada

  • Favorite Pinball: Monster Bash

Posted 10 May 2020 - 01:25 PM

 even while working on the new project

what new project?

I can't recall the specifics it was discussed at gopinball but it was a new pinball emulator that was under way that he is helping develop

Edited by gimli246, 10 May 2020 - 01:26 PM.


#30 TerryRed

TerryRed

    Pinball Wizard

  • Silver Supporter
  • 2,011 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 11 May 2020 - 09:47 AM

 

 

 even while working on the new project

what new project?

I can't recall the specifics it was discussed at gopinball but it was a new pinball emulator that was under way that he is helping develop

 

 

 

It's VPE, Visual Pinball in Unity. Take a look here. It's a long way off before it's complete, but it's definitely the next step for a new pinball emulator to eventually move on to.

 

https://www.vpforums...showtopic=43651

 

 

================================

 

BAM Update v289

https://www.ravarcad...AM_v1.5-289.zip
https://www.ravarcad...s/bam-setup.exe
https://www.ravarcad.../BAM-OpenVR.zip

- Bug fixes: lighting error in VR, New Renderer on objects in mini-playfield
- Added iCom & PuP Plugins, see TerryRed guide: https://vpinball.com... ... -terryred/
- PuP Plugin allows to replace any texture in FP to another texture or pup video stream with script commands

 

More info at rav's Bam beta thread.

 

=================================

 

 

Thanks to DJRobX and ravaracade for making the PuP Plug-in possible.

I still need to update my PinEvent tables and PuP-Packs... and maybe PinEvent itself to use this more automatically, but you guys can still play around with it if you want on any table!

You can use the pup-plugin to stream ANY window (not just PuP) to ANY FP texture. It's amazingly easy and works really well. It's all command based though, so you need to add commands to the table script to use it.

One stream can display on multiple textures at the same time, toggled on / off... have BAM lighting effects added to it,etc.

You can also stream multiple windows to multiple streams and textures. So, for example you can stream a PuP BG, the PUPDMD, Topper, Netflix, youtube separately and display them on any texture.

Remember, this is FP and BAM so there are many ways this can be used on the table itself, or in the Game Room.

The key thing is... the Window you are streaming MUST be visible on a monitor / dummy plug monitor / spare input of your monitor (connected to your video card), and not be obstructed.

I have been toggling it on with a key / button I set in the table script... but you could always have it work on table startup automatically.

I'll try to update my PinEvent tables and pack as soon as I can... but hey... maybe you can stream Netflix or the hockey game into FP VR on your Backglass, or a hologram, or the game room wall icon_e_smile.gif

This will open up some really cool stuff, not just for VR but also single screen Desktop users running FP in Fullscreen as well!

Thank so much for this Rav!

 

====================================

 


====== Using the PuP Plug-in, simple example ========

 

It's so simple guys. you don't even need to use it with Pinup Player. you can stream Netflix, or any Window to test and play with for the PuP Plug-in.

Just do this on a newer table updated for BAM already.

Add this after xBAM.CreateAllExt()

Dim PP, T0, T1, T2, T3, T4
Set PP = xBAM.Get("PuPPlugin")
If PP Is Nothing Then
   AddDebugText "PuP Plugin is missing"
Else    
'   PP.Msg "Hello"
end if

and add this if you want it to start right away....

PP.ShowVideo "PUP_BG", "PUPSCREEN2"
PP.ShowVideo "PUP_FullDMD", "PUPSCREEN4"

 

....or instead add this to Sub FuturePinball_KeyPressed(ByVal KeyCode) so you can turn it on when you want

Sub FuturePinball_KeyPressed(ByVal KeyCode)

If KeyCode = 37 Then PP.ShowVideo "PUP BG", "PUPSCREEN2"
If KeyCode = 38 Then PP.ShowVideo "PUP FullDMD", "PUPSCREEN4" : DispDmd1Ext.Visible = false

Just replace the "PUP BG" and "PUP FullDMD" with whatever FP texture you want to replace. Change the "PUPSCREEN2" and "PUPSCREEN4" with the name of whatever Window you want to stream from. Can be Netflix, a browser, a Windows Store game, etc.

You may need to use Alt-TAB or Task Manager to get the correct Window name.

DispDmd1Ext.Visible = false is optional. This is a new BAM feature that lets you hide the DMD on the Backglass. This is handy for hiding the backglass DMD when replacing it with a PinEvent table pup-pack and PUPDMD.


That's it!

 

The PuP Stream should start right away and swap the FP texture with the Windows you are streaming. (unless you choose to toggle it by keys instead, then you can press the K and L keys)

 

 

=========================================

 

I also added another video guide to go along with my Mega Guide.... this time only for multi-screen CABINET users.

 

 

https://youtu.be/_zstAevRz8o

 

 

HWB52X8.jpg


Edited by TerryRed, 11 May 2020 - 12:18 PM.


#31 gimli246

gimli246

    Enthusiast

  • Members
  • PipPipPip
  • 278 posts

  • Flag: Canada

  • Favorite Pinball: Monster Bash

Posted 11 May 2020 - 12:07 PM

WOW !!
Is that all ? :)

I can't wait to try some of these new features !

Here's Terry's demo video

https://youtu.be/QuT4QaPptWk

Edited by gimli246, 11 May 2020 - 12:19 PM.


#32 TerryRed

TerryRed

    Pinball Wizard

  • Silver Supporter
  • 2,011 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 11 May 2020 - 12:25 PM

WOW !!
Is that all ? :)

I can't to try some of these new features !

Here's Terry's demo video

https://youtu.be/QuT4QaPptWk

 

 

Yah, that's all, LOL!

 

Isn't that amazing!

 

For a PinEvent table, to display the PuP Backglass and PUPDMD on desktop...

 

You can just add a simple jpg of "PUP_BG" and "PUP_FullDMD" to two different ImageLists.

 

Then use the ImageLists on two different Hud Overlays, One for PuP Backglass and the other for PUPDMD. One in each corner of your desktop view.

 

That's it!

 

Table will start up, and start pup plug-in... and then replace those textures from the Image Lists with the PuP Stream Windows. You don't even need to assign those jpgs to a surface using that method!

 

 

The other "ReplaceTexture" command however needs the textures to be on at least one surface.

 

 

 

Attached Files


Edited by TerryRed, 11 May 2020 - 12:35 PM.


#33 wild

wild

    Enthusiast

  • Members
  • PipPipPip
  • 53 posts

  • Flag: Italy

  • Favorite Pinball: batman

Posted 11 May 2020 - 02:55 PM

terry,gimli...you have used the new version of Bam?

 

do you know if the function xBAM.Lights.Brightness = xxxxx, has been activated via script?

Gopinball continues to be practically inaccessible, so I sent an imail to rav to find out if it has integrated it



#34 TerryRed

TerryRed

    Pinball Wizard

  • Silver Supporter
  • 2,011 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 11 May 2020 - 03:08 PM

terry,gimli...you have used the new version of Bam?

 

do you know if the function xBAM.Lights.Brightness = xxxxx, has been activated via script?

Gopinball continues to be practically inaccessible, so I sent an imail to rav to find out if it has integrated it

 

 

I just tried:

 

 xBAM.Lights.Brightness = 5

 

 

and all the lights were very bright... so it seems to work.



#35 wild

wild

    Enthusiast

  • Members
  • PipPipPip
  • 53 posts

  • Flag: Italy

  • Favorite Pinball: batman

Posted 11 May 2020 - 03:15 PM

 

terry,gimli...you have used the new version of Bam?

 

do you know if the function xBAM.Lights.Brightness = xxxxx, has been activated via script?

Gopinball continues to be practically inaccessible, so I sent an imail to rav to find out if it has integrated it

 

 

I just tried:

 

 xBAM.Lights.Brightness = 5

 

 

and all the lights were very bright... so it seems to work.

 

I explained badly ...not for light...

I mean this

 

ball-setting.jpg

 

this function via script does not work, but only manually it must be activated.....
 
now this function is important, because in "setlightdarknight" mode the ball is very dark, and the custom ball hardly sees you ..... when I activate the two functions in the red circle, then the ball is very clear, and not dark
 
 
I have always made the mistake of confusing the two codes
xBAM.Ball.Brightness =  xxxxx....... xBAM.Lights.Brightness
 
obviously you should activate the function first, lock = true / false
 

Edited by wild, 11 May 2020 - 03:30 PM.


#36 TerryRed

TerryRed

    Pinball Wizard

  • Silver Supporter
  • 2,011 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 11 May 2020 - 03:25 PM

 

 

terry,gimli...you have used the new version of Bam?

 

do you know if the function xBAM.Lights.Brightness = xxxxx, has been activated via script?

Gopinball continues to be practically inaccessible, so I sent an imail to rav to find out if it has integrated it

 

 

I just tried:

 

 xBAM.Lights.Brightness = 5

 

 

and all the lights were very bright... so it seems to work.

 

I explained badly ...not for light...

I mean this

 

ball-setting.jpg

 

this function via script does not work, but only manually it must be activated.....
 
now this function is important, because in "setlightdarknight" mode the ball is very dark, and the custom ball hardly sees you ..... when I activate the two functions in the red circle, then the ball is very clear, and not dark
 

 

 

 

When you CTRL C for Set Lights you get:

 

 

Sub SetLightsParamsInBAM()
   xBAM.Lights.EnableNewRenderer             = TRUE
   xBAM.Lights.MainLightLock                 = TRUE
' --- SetMainLightPosition not used because MainLightLock = FALSE
'  xBAM.Lights.SetMainLightPosition                 0,    650,    500
   xBAM.Lights.SetMainLightProperties               1,  0.315,    1.1,  0.075
   xBAM.Lights.SetMainLightAttenuation              1,      0,      0
   xBAM.Lights.SetOtherLightsAttenuation        0.066,      0,  0.333
   xBAM.Lights.EnablePostprocessing          = FALSE
   xBAM.Lights.SetPostprocessing                    1,      0,      1,      1
   xBAM.Lights.SetPostprocessingForNewRenderer      1,      0,      1,      1,    1.5,      1,      1,      1,      1
'  xBAM.Lights.BallReflection =      1
   xBAM.Lights.BallShininess =    400
   xBAM.Lights.BallSpecular =    0.4
End Sub
 

 

I tried using:

 

xBAM.Lights.BallBrightness = 2

 

...but that command doesn't work.

 

I understand what you mean. With RetroFlair BAM, PacMan isn't bright enough by script, so I need to set it in the BAM menu.


Edited by TerryRed, 11 May 2020 - 03:27 PM.


#37 gimli246

gimli246

    Enthusiast

  • Members
  • PipPipPip
  • 278 posts

  • Flag: Canada

  • Favorite Pinball: Monster Bash

Posted 11 May 2020 - 03:55 PM

As you noted , there are separate XBam Ball codes for specular etc...

Here is George's recent code:

If BAM_VERSION => 256 then

'  BALL AND FLIPPER SHADOWS

'  These settings adjust the settings for ball and flipper shadows.  Change the settings in blue below to make adjustments.  
'  Note that the settings in the script here will override any settings made on the "AddOn" menu in BAM.  

'- Dark Level - (default = 0.7) - This determines how dark the shadow is.  Set value to 0.0 if you want to disable the shadows. 
'- Soft Radius - (default = 1.8) - This is the "soft" edge of shadow.  It sets how far from the ball the shadow will be drawed [in ball radius units]. 
'- Hard Radius - (default = 0.0) - This is the "hard" edge of shadow. If "hard" = "soft" then the whole spot under ball is uniform. 
'                                  If "soft" > "hard", then soft and hard edges on shadow will be blured.
'- Max Level Above Playfield - (default = 1.0) - you can increase how far from playfield ball shadow will disappear. By default, the shadow is smaller 
'																 when ball is above playfield. The shadow will disappear if the ball is ~13.5mm above (1 ball radius).
'- Remove Shadows From Invisible Ball - (true/false, default = true), If you have invisble balls on table (with opacity = 0.0), then the ball 
'                                   	 won't have a shadow. So, you can set this to false in the script and even invisible ball will have shadow. 
'                                   	 This is added in case if someone have weird ball on table with attached miniplayfield and won't have shadow.

'						  Dark Radius Radius Max Level Above  Remove Shadows From
'						  Level Soft  Hard   Playfield        InvisibleBall
'						  0-1, 0-10,  0-10
xBAM.SetBallShadows 0.9 , 1.2 , 0.3 , 	1 ,				  true
End If

If BAM_VERSION => 275 then

'  BALL CONFIGURATION

'  You can change the parameters for ball reflections, shininess and specular.  Note that the parameters for Ball Brightness cannot be set in the  
'  script.  To change Brightness, open the "Addons" menu in BAM and select "Config Ball" on BAM version 275 or later.  The options below only work   
'  when the "New Renderer" light system is used.

'  Reflection = 						  0 - 10 	(default = 4)
   xBAM.Lights.BallReflection =      4

'  Shininess = 					 0.1 - 1000 	(default = 1000)
   xBAM.Lights.BallShininess 	=   1000

'  Specular = 							0.1 - 100 	(default = 0.8)
   xBAM.Lights.BallSpecular 	=    0.8
End If

Edited by gimli246, 11 May 2020 - 03:59 PM.


#38 TerryRed

TerryRed

    Pinball Wizard

  • Silver Supporter
  • 2,011 posts

  • Flag: Canada

  • Favorite Pinball: Too many to choose...

Contributor

Posted 11 May 2020 - 03:59 PM

 

There are separate XBam Ball codes for specular etc...

Here is George's recent code:

If BAM_VERSION => 256 then

'  BALL AND FLIPPER SHADOWS

'  These settings adjust the settings for ball and flipper shadows.  Change the settings in blue below to make adjustments.  
'  Note that the settings in the script here will override any settings made on the "AddOn" menu in BAM.  

'- Dark Level - (default = 0.7) - This determines how dark the shadow is.  Set value to 0.0 if you want to disable the shadows. 
'- Soft Radius - (default = 1.8) - This is the "soft" edge of shadow.  It sets how far from the ball the shadow will be drawed [in ball radius units]. 
'- Hard Radius - (default = 0.0) - This is the "hard" edge of shadow. If "hard" = "soft" then the whole spot under ball is uniform. 
'                                  If "soft" > "hard", then soft and hard edges on shadow will be blured.
'- Max Level Above Playfield - (default = 1.0) - you can increase how far from playfield ball shadow will disappear. By default, the shadow is smaller 
'																 when ball is above playfield. The shadow will disappear if the ball is ~13.5mm above (1 ball radius).
'- Remove Shadows From Invisible Ball - (true/false, default = true), If you have invisble balls on table (with opacity = 0.0), then the ball 
'                                   	 won't have a shadow. So, you can set this to false in the script and even invisible ball will have shadow. 
'                                   	 This is added in case if someone have weird ball on table with attached miniplayfield and won't have shadow.

'						  Dark Radius Radius Max Level Above  Remove Shadows From
'						  Level Soft  Hard   Playfield        InvisibleBall
'						  0-1, 0-10,  0-10
xBAM.SetBallShadows 0.9 , 1.2 , 0.3 , 	1 ,				  true
End If

If BAM_VERSION => 275 then

'  BALL CONFIGURATION

'  You can change the parameters for ball reflections, shininess and specular.  Note that the parameters for Ball Brightness cannot be set in the  
'  script.  To change Brightness, open the "Addons" menu in BAM and select "Config Ball" on BAM version 275 or later.  The options below only work   
'  when the "New Renderer" light system is used.

'  Reflection = 						  0 - 10 	(default = 4)
   xBAM.Lights.BallReflection =      4

'  Shininess = 					 0.1 - 1000 	(default = 1000)
   xBAM.Lights.BallShininess 	=   1000

'  Specular = 							0.1 - 100 	(default = 0.8)
   xBAM.Lights.BallSpecular 	=    0.8
End If

 

 

I don't think you realized.... that script agrees with what me and Wild just said. You can't set Ball Brightness in script  :)


Edited by TerryRed, 11 May 2020 - 03:59 PM.


#39 gimli246

gimli246

    Enthusiast

  • Members
  • PipPipPip
  • 278 posts

  • Flag: Canada

  • Favorite Pinball: Monster Bash

Posted 11 May 2020 - 04:01 PM

Hehe , ya I corrected my over site as you were responding  :lusty:



#40 wild

wild

    Enthusiast

  • Members
  • PipPipPip
  • 53 posts

  • Flag: Italy

  • Favorite Pinball: batman

Posted 11 May 2020 - 04:01 PM

the right code should be,,,,,xBAM.Ball.Brightness =  xxxxx

 

and on Sub "SetLightsParamsInBAM()"as for the new renderer

 

xBAM.Lights.EnableBall.Brightness             = TRUE/ or false.....