Jump to content

Stereo 3D and BAM head-tracking wheels and scripts

    Create an account or sign in to download this
download_no_perm
3968 Views
96 Downloads
5 From 3 reviews
1.74 MB File Size
gginelli Created by
gginelli Artwork by

3 Screenshots

About This File

For all fellow stereo 3D and/or BAM head-tracking enthusiasts who would like to easily switch between these modes and normal "pancake" mode for VPX in PinUP Popper:

 

Some wheel images and scripts that can be used for anaglyph 3D, polarized 3D and BAM head-tracking alternate run modes for VPX in PinUP Popper. For more information regarding alternate run modes in PinUP Popper, see: https://www.nailbuster.com/wikipinup/doku.php?id=alt_mode.

 

(Note that for Future Pinball this procedure is not necessary, you can simply assign a key or button to toggle stereo 3D and BAM head-tracking in-game and at the same time. Unfortunately VPX currently does not allow switching between stereo 3D, BAM head-tracking or normal mode in game, nor run them simultaneously, hence the need for separate alternate run modes.)

 

They can be used for VPX in PinUP Popper as follows:

  1. Add wheel images and Powershell scripts to your PinUP Popper setup, e.g. in C:\vPinball\PinUPSystem\POPMedia\Default\System
  2. Add useAltWheels=1 in PinUP Popper's GlobalConfig script: Open PinUP Popper Config, click on the Popper Setup tab, and click on the GlobalConfig button. On the Script tab, add "useAltWheels=1" (without quotes) in the window and click the Save button.
  3. Add the following code in the launch and close scripts for VPX in PinUP Popper: Open PinUP Popper Config, click on the Popper Setup tab, click on the Emulators button, and select Visual Pinball X in the list on the left. On the Launch Setup tab, there are two windows: Top window shows the VPX launch script, botton window shows the VPX close script. Add the following pieces of code in those window (don’t over-write the existing code), and save by clicking on the checkmark button.
    • In the VPX launch script, copy-paste the following immediately after the "SET VPXEXE=vpinballx.exe" line:
      if "[ALTMODE]"=="A3D" (
          SET VPXEXE=VPinballX_GL64.exe
          powershell -executionpolicy bypass "& '[STARTDIR]POPMedia\Default\System\VPX_enable_Anaglyph3D.ps1'"
      )
      
      if "[ALTMODE]"=="P3D" (
          SET VPXEXE=VPinballX_GL64.exe
          powershell -executionpolicy bypass "& '[STARTDIR]POPMedia\Default\System\VPX_enable_Polarized3D.ps1'"
      )
      
      if "[ALTMODE]"=="BAM" (
          START "" "C:\vPinball\FuturePinball\BAM\BAM-Tracker.exe" 
          timeout /t 1 /nobreak > NUL
          powershell -executionpolicy bypass "& '[STARTDIR]POPMedia\Default\System\VPX_enable_BAM.ps1'"
      )

       

    • In the VPX close script, add the following at the bottom:
      if "[ALTMODE]"=="A3D" (
          powershell -executionpolicy bypass "& '[STARTDIR]POPMedia\Default\System\VPX_disable_Stereo3D.ps1'"
      )
      
      if "[ALTMODE]"=="P3D" (
          powershell -executionpolicy bypass "& '[STARTDIR]POPMedia\Default\System\VPX_disable_Stereo3D.ps1'"
      )
      
      if "[ALTMODE]"=="BAM" (
          powershell -executionpolicy bypass "& '[STARTDIR]POPMedia\Default\System\VPX_disable_BAM.ps1'"
          taskkill /f /im "BAM-Tracker.exe"
      )

       

  4. Open PinUP Popper Config, click on the Game Manager tab, and click on the Games Manager button. Add "BAM,A3D,P3D" (without quotes) in the Alternate Run Modes field of every VPX game in your collection (yes, this is tedious if you have 100+ tables, sorry 🙂). If you are upgrading from version 1.2 and have an extensive table collection, you can use the SQL command in the included UpdateDB.sql file to automate this process.

 

Change folder locations in the scripts according to your personal setup. Change the value of the Stereo3D parameter according to your preferred stereo 3D mode (e.g. 5 = red-cyan anaglyph, 3 = interlaced polarized). Note that once stereo 3D mode is enabled, you can toggle the specific mode in-game by pressing F10.

 

Enjoy!

 

--------------------

 

Optional:

 

For users that prefer different POV's for stereo 3D mode and normal mode, this can be accomplished by adding some copy commands of the table ini file in the VPX launch and close scripts, e.g. by replacing the "if [ALTMODE]== (...)" code blocks in step 3 above as follows:

  • VPX launch script:
    if "[ALTMODE]"=="A3D" (
        SET VPXEXE=VPinballX_GL64.exe
        copy "[DIRGAME]\[GAMENAME].ini" "[DIRGAME]\[GAMENAME].ini.normal" /Y
        copy "[DIRGAME]\[GAMENAME].ini.stereo3D" "[DIRGAME]\[GAMENAME].ini" /Y
        powershell -executionpolicy bypass "& '[STARTDIR]POPMedia\Default\System\VPX_enable_Anaglyph3D.ps1'"
    )
    	
    if "[ALTMODE]"=="P3D" (
        SET VPXEXE=VPinballX_GL64.exe
        copy "[DIRGAME]\[GAMENAME].ini" "[DIRGAME]\[GAMENAME].ini.normal" /Y
        copy "[DIRGAME]\[GAMENAME].ini.stereo3D" "[DIRGAME]\[GAMENAME].ini" /Y
        powershell -executionpolicy bypass "& '[STARTDIR]POPMedia\Default\System\VPX_enable_Polarized3D.ps1'"
    )

     

  • VPX close script: 
    if "[ALTMODE]"=="A3D" (
        copy "[DIRGAME]\[GAMENAME].ini" "[DIRGAME]\[GAMENAME].ini.stereo3D" /Y
        copy "[DIRGAME]\[GAMENAME].ini.normal" "[DIRGAME]\[GAMENAME].ini" /Y
        powershell -executionpolicy bypass "& '[STARTDIR]\POPMedia\Default\System\VPX_disable_Stereo3D.ps1'"
    )
    
    if "[ALTMODE]"=="P3D" (
        copy "[DIRGAME]\[GAMENAME].ini" "[DIRGAME]\[GAMENAME].ini.stereo3D" /Y
        copy "[DIRGAME]\[GAMENAME].ini.normal" "[DIRGAME]\[GAMENAME].ini" /Y
        powershell -executionpolicy bypass "& '[STARTDIR]\POPMedia\Default\System\VPX_disable_Stereo3D.ps1'"
    )

     

 

Edited by gginelli
Updated explanation according to version 1.3.0.

What's New in Version 1.0.0   See changelog

Released

No changelog available for this version.

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Griznix

   2 of 2 members found this review helpful 2 / 2 members

This works great! Nice to be able to switch to 3D easily now. Wasn't sure about where to add the script at first but was able to figure it out. Thanks for making this!!

Response from the author:

Thanks for your review! I added some more details to the explanation, to make the installation/configuration of the scripts a bit more explicit and clear.

PinSparky

   1 of 1 member found this review helpful 1 / 1 member

Excellent work! Works perfectly. Way better than closing popper, launching VPX to change settings and then close VPX to launch popper. Very streamlined. I really like the wheels also. Thank you for this!

 

Response from the author:

Yes, I was getting tired of manually switching modes. Glad to hear it works seamlessly for you too!

whosinaname

   1 of 1 member found this review helpful 1 / 1 member

Thank you for this,  It is exactly what I needed.  I like to play using BAM but sometimes just normal is great when you have people around.  This makes it easy to launch it in Bam, Anaglyph, or normal.

Response from the author:

Yes, the fact that BAM head-tracking doesn't work well when there are multiple people behind my cab was the main reason I wanted an easier solution to switch modes. Glad it works out for you too!

×
  • Create New...