Version 1.3.0
95 downloads
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:
Add wheel images and Powershell scripts to your PinUP Popper setup, e.g. in C:\vPinball\PinUPSystem\POPMedia\Default\System
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.
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"
)
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'"
)