Jump to content



Photo
* * * * * 1 votes

Can VPX do Anaglyph 3D?


  • Please log in to reply
458 replies to this topic

#321 jpsalas

jpsalas

    Grand Schtroumpf

  • VIP
  • 7,323 posts
  • Location:I'm Spanish, but I live in Oslo (Norway)

  • Flag: Norway

  • Favorite Pinball: I like both new and old, but I guess I prefer modern tables with some rules and goals to achieve.



Posted 09 January 2023 - 10:37 PM

Thanks, elmera, I'll take a look at Reshade. I only tried the built inn VPX support. 


If you want to check my latest uploads then click on the image below:

 

vp.jpg

 

Next table? A tribute table to Stern's Foo Fighters


#322 Tiki

Tiki

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Location:Germany

  • Flag: Germany

  • Favorite Pinball: Medieval Madness, Tales of Arabian Nights, Creature from the black Lagoon

Posted 10 January 2023 - 02:03 PM

 

Whopie! That sounds nice. I wonder if this is also possible in PinballY!?

 

I've never used PinballY, but it looks like it does have something called LaunchEvents for pre- and post- game launches that could be used to do the same thing.  Not sure what language its scripts use though.  Will have to look into it. 

 

Yes. PinballY has two slots for run before and run after. I use one of the "afters" to close the pupplayer on exit. [powershell -Command "Start-Process 'taskkill' /IM pinupplayer.exe /T /F' -WindowStyle hidden -Verb runAs"] As long as I understand its possible to put commands into a slot or call a bat, so for me it sounds as it could work.
I have no clue about coding and no Idea how to handle this, where to put which code or how to edit it, so it could run in PinballY.


vpforumstiki.jpg


#323 blindpeser

blindpeser

    Enthusiast

  • Members
  • PipPipPip
  • 421 posts

  • Flag: ---------

  • Favorite Pinball: WCS94

Posted 10 January 2023 - 06:12 PM

Someone tried Anaglyph and Bam at the same time and said this is awesome. Did someone else tried this and can compare it with VR?

#324 elmera

elmera

    Enthusiast

  • Silver Supporter
  • 76 posts

  • Flag: United States of America

  • Favorite Pinball: T2

Posted 10 January 2023 - 06:25 PM

Yes. PinballY has two slots for run before and run after. I use one of the "afters" to close the pupplayer on exit. [powershell -Command "Start-Process 'taskkill' /IM pinupplayer.exe /T /F' -WindowStyle hidden -Verb runAs"] As long as I understand its possible to put commands into a slot or call a bat, so for me it sounds as it could work.
I have no clue about coding and no Idea how to handle this, where to put which code or how to edit it, so it could run in PinballY.

 

I have never used PinballY, but installed it quick and read some of the documentation to see how it would work.  There may be a better way, but this is how I got it to work.

 

First, create the "reshade-presets" folder in your VisualPinball folder like before, and copy in a default Reshade preset into that folder called default.ini.

 

Next, create two batch scripts in your PinballY directory with the following name and contents:

 

copy_reshade_preset.bat

@echo off

SET DIREMU=%~1
SET GAMENAME=%~2

if exist "%DIREMU%\reshade-presets\%GAMENAME%.ini" (
  copy "%DIREMU%\reshade-presets\%GAMENAME%.ini" "%DIREMU%\3d.ini"
) else (
  if exist "%DIREMU%\reshade-presets\default.ini" (
    copy "%DIREMU%\reshade-presets\default.ini" "%DIREMU%\3d.ini"
  )
)

save_reshade_preset.bat

@echo off

SET DIREMU=%~1
SET GAMENAME=%~2

if exist "%DIREMU%\3d.ini" (
  if exist "%DIREMU%\reshade-presets" (
    copy "%DIREMU%\3d.ini" "%DIREMU%\reshade-presets\%GAMENAME%.ini"
  )
)

Now go into the PinballY options and put the following in the "Run before" command box (I'm assuming it doesn't matter if it goes in run before (1) or (2))  NOTE: UPDATE YOUR PATH TO VISUAL PINBALL IN THIS COMMAND.  I couldn't find a variable so had to specify a full path. 

[HIDE] CMD /c [PINBALLY]\copy_reshade_preset.bat "C:\vPinball\VisualPinball" "[TABLEFILEBASE]"

Add this command into the "Run after" command box.  Same as before, update your path to Visual Pinball

[HIDE] CMD /c [PINBALLY]\save_reshade_preset.bat "C:\vPinball\VisualPinball" "[TABLEFILEBASE]"

Screenshot attached.  That should hopefully copy the table specific Reshade preset from your reshade-presets folder, or the default.ini, into your VisualPinball folder as 3d.ini, and save it when you close the table.

Attached File  2023-01-10_11-58-42.jpg   179.77KB   1 downloads

 

 


Someone tried Anaglyph and Bam at the same time and said this is awesome. Did someone else tried this and can compare it with VR?

 

I haven't tried it with Bam yet, but plan to try at some point!

 

I also have never even used VR so don't know how to compare.  I'm sure VR is better looking because you get an uncompromised visual compared to an anaglyph the has offset colors to provide the 3D effect.  I just haven't tried VR yet since I have a cab and would rather look at it than have a headset on.  :)  If I didn't have a cab I would certainly have tried it by now.  


Edited by elmera, 11 January 2023 - 02:30 AM.


#325 blindpeser

blindpeser

    Enthusiast

  • Members
  • PipPipPip
  • 421 posts

  • Flag: ---------

  • Favorite Pinball: WCS94

Posted 10 January 2023 - 08:26 PM

Maybe you have the chance to try it one day. It is really awesome. I'd like to know if anaglyph and Bam is close or far away.

#326 digitalarts

digitalarts

    Pinball Fan

  • Members
  • PipPipPipPip
  • 861 posts
  • Location:Bavaria

  • Flag: Germany

  • Favorite Pinball: Judge Dredd (have the real one); all virtual EM's

Posted 10 January 2023 - 11:20 PM

@elmera
Just want to say thank you for your example of PBY script.
I always wanted to use batches in the command boxes, but they failed because I tried to use the PBY variables "directly" in .bat - this don't work, as I understand now... But with your hint to use them as "parameters" to a batch and use good old dos scripting (%, ~) - this open my mind :⁠-⁠):⁠-⁠)

#327 Tiki

Tiki

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Location:Germany

  • Flag: Germany

  • Favorite Pinball: Medieval Madness, Tales of Arabian Nights, Creature from the black Lagoon

Posted 11 January 2023 - 11:28 AM

@elmera Thankyou very much for investigating PinballY.

Its not only for 3D. I use a shader, normally having turned 3D off. I turned some graphic inside vpx off and let the shader do the job, which gives me a nicer screen at the end with glamyre and pseudo HDR. 
For ppl never used reshade: Its a bit like having a LUT  but you can do more with it than with a LUT file. I can edit contrast, pseudo HDR and much much more than in a simple LUT file.
Until now I could only do all these settings only globally.
Now I can set each table individually, I hope. I will try it out tonight. :db:

 

Note for people trying out reshade and anaglyph:
1 It does not work for all eyes. Some people have problems with anaglyph glasses. This is individual.
2 It does not work the same with every table.
Some tables work very well in 3D for me. (Black Lagoon) Many are ok. Some tables don't seem to work at all. (NBA Fastbreak)
I guess it has to do with the colors a table uses and how it is constructed.

 

I use two external shaders in reshade.
- SuperDepth3D for some tables, which I turn on separately if I want to play with glasses
- Glamayre_Fast_Effects as default shader for all tables.

Glamyre can be found here:
https://github.com/r...cts_for_ReShade
 

If you want to try my preset:
https://mega.nz/file...m4aey01BmtnSshg


Edited by Tiki, 11 January 2023 - 11:42 AM.

vpforumstiki.jpg


#328 elmera

elmera

    Enthusiast

  • Silver Supporter
  • 76 posts

  • Flag: United States of America

  • Favorite Pinball: T2

Posted 11 January 2023 - 08:11 PM

@Tiki -- Cool, let me know if it works.  That's good to know about those other shaders.  I'll have to check them out.  The only other one I've used is "vibrance" to enhance some of the colors.  

 

Which glasses are you using?



#329 Tiki

Tiki

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Location:Germany

  • Flag: Germany

  • Favorite Pinball: Medieval Madness, Tales of Arabian Nights, Creature from the black Lagoon

Posted 11 January 2023 - 09:05 PM

First of all: It works! - Yippie!! :db:
I have two glasses, one is red-cyan and one is "amber-blue".
One thing left which I did not understand fully right now. The preset ini we do copy and use now contains all settings for the shader or 3d used.
But: I can not use different shaders for individual tables or switch on 3D for one table and not for another. I guess these settings are stored in reshade.ini :tapping:
means: to get super comfortable it would be needed to copy reshade.ini on individual basis too.
I use to set NoReloadOnInit=1 in reshade.ini and load reshade with shift-pagedown if I want to use it. It is nice to have separate settings for each table but I still have to switch on an off 3d or a a layer if settings are different as in default-reshade.inl.
It would be a Deluxe Version if reshade could have two directorys. one for the presets like it works now for shader and 3d settings and one for the ini´s to handle what is turned on and what is turned off.
I only guess that on´s and off´s are stored in reshade.ini - If someone knows it, please tell me :-)


vpforumstiki.jpg


#330 elmera

elmera

    Enthusiast

  • Silver Supporter
  • 76 posts

  • Flag: United States of America

  • Favorite Pinball: T2

Posted 11 January 2023 - 09:45 PM

Well good to hear the table presets are working.  I guess I'm not super fluent with the base reshade.ini file and the settings it stores.  I do know Reshade will start with whatever preset was last used, which is why I only use two -- one for 3d and one without.  I then have a button on my cabinet assigned to the "next preset" key in Reshade, allowing me to essentially turn 3d on / off. 

 

When I have a chance I'll look into that more, but you can always modify the scripts to copy out other files you want to be specific to each table (such as reshade.ini) and store them in different folders.  It should be pretty straight forward. 

 

I really do recommend trying the green / magenta Trioviz glasses and using either "green / magenta" or "green / magenta - triochrome" (my preferred) display option in Reshade.  Maybe my red/cyan and yellow/blue glasses just suck, but to me the green magenta offer a lot better color replication and isn't as dark.


Edited by elmera, 12 January 2023 - 01:30 AM.


#331 superballs

superballs

    Enthusiast

  • Silver Supporter
  • 194 posts

  • Flag: Canada

  • Favorite Pinball: High Speed II: The Getaway, Triple Strike, Beat This, Medieval Madness

Posted 25 January 2023 - 03:52 AM

Interesting .... so just some ideas, since VPX can handle VR Rooms, assuming the a different image is sent to each eye on the Oculus and if the VPX engine or the Graphic Card can present an Anaglyph then in theory it sounds plausible. Just not sure how you would design the table graphics to present Anaglyph images out to the Oculus.

For FP tables, I'm guessing BAM + the Kinect could yield the same effect, just without the glasses.

FP+BAM does anaglyph, it does some other 3D/VR things but as i dont have anything to display those on, i didn't really look
does not require any special table design.
The kinect or similar device just gets me head tracking, which is kind of annoying actually

Not sure why you would want anaglyph out of the vr headset? it is already doing a different form of stereo 3d
stereo 3d over stereo 3d probably wont work well

Anaglyph would be useless but there are programs that allow you to play flat screen games in vr on a large screen and they often support sbs and over/under 3d

#332 scutters

scutters

    Pinball Fan

  • Members
  • PipPipPipPip
  • 539 posts

  • Flag: England

  • Favorite Pinball: Addams Family

Posted 22 March 2023 - 01:55 PM

Anybody tried running ReShade with 32bit and 64bit VpinballX.exes in the same folder?

 

Seems like you can install for 32bit or 64bit only, reshade will only be available in the version you last installed it against. 

 

Guess i'll leave it on for 32bit for now unless someone has a workaround.

 

(reshade 5.7 also seems to have messed up my trioviz settings, so something else to update... ho hum)



#333 Gravy

Gravy

    Pinball Fan

  • VIP
  • 1,147 posts

  • Flag: Australia

  • Favorite Pinball: Simpsons pinball party



Posted 22 March 2023 - 10:07 PM

Anybody tried running ReShade with 32bit and 64bit VpinballX.exes in the same folder?

 

Seems like you can install for 32bit or 64bit only, reshade will only be available in the version you last installed it against. 

 

Guess i'll leave it on for 32bit for now unless someone has a workaround.

 

(reshade 5.7 also seems to have messed up my trioviz settings, so something else to update... ho hum)

No I haven't, not 100% sure how reshade actually knows what exe to run with after installing, perhaps it is just based on the file name? I wonder if you just rename the 64 bit to the original exe name that you installed it on and then changed the 32 filename to something else will it still work?

If that is the case, maybe you could create a bat file that renames the files each time you want to play on either the 32 or 64 version?


Edited by Gravy, 22 March 2023 - 10:08 PM.

Pinball Addict


#334 scutters

scutters

    Pinball Fan

  • Members
  • PipPipPipPip
  • 539 posts

  • Flag: England

  • Favorite Pinball: Addams Family

Posted 23 March 2023 - 08:35 AM

No I haven't, not 100% sure how reshade actually knows what exe to run with after installing, perhaps it is just based on the file name? I wonder if you just rename the 64 bit to the original exe name that you installed it on and then changed the 32 filename to something else will it still work?

If that is the case, maybe you could create a bat file that renames the files each time you want to play on either the 32 or 64 version?

 

 

 

It looks like reshade will work on any vpinballx**** .exe in the folder of the program you installed it against that runs on the same platform (32bit or 64bit) and isn't file name dependent.

I think the platform issue is due to the directx libraries it copies across during the install, they must be only 32 or 64 bit. So no easy fix i can think of except using different folders for 32bit and 64bit versions of VPX (too much of a change for me at this time as i only intend to use 64bit for a couple of tables, and there is a chance i might move away from reshade with VPX 10.8 too if the anaglyph modes are improved with opengl)

 

 

 

(reshade 5.7 also seems to have messed up my trioviz settings, so something else to update... ho hum)

 

The trioviz shader got updated, just needed to increase separation value for the new version (think i was using a value near zero before, now near 6.5)



#335 Tiki

Tiki

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Location:Germany

  • Flag: Germany

  • Favorite Pinball: Medieval Madness, Tales of Arabian Nights, Creature from the black Lagoon

Posted 23 March 2023 - 11:17 AM

Anybody tried running ReShade with 32bit and 64bit VpinballX.exes in the same folder?

Yes I did. Left my working 32bit vpx exe with the old name. renamed the 64bit to VPinballX64.exe
After updating only 32bit was loading reshade, 64bit not.
then I did a install of reshade pointing to VPinballX64.exe using the preset I already have with 32bit in the same folder.
Now both versions work with reshade, using the same shader folder and preset and Big Bang Bar looks better. :-)
 


Edited by Tiki, 23 March 2023 - 11:21 AM.

vpforumstiki.jpg


#336 scutters

scutters

    Pinball Fan

  • Members
  • PipPipPipPip
  • 539 posts

  • Flag: England

  • Favorite Pinball: Addams Family

Posted 23 March 2023 - 11:28 AM

 

Anybody tried running ReShade with 32bit and 64bit VpinballX.exes in the same folder?

Yes I did. Left my working 32bit vpx exe with the old name. renamed the 64bit to VPinballX64.exe
After updating only 32bit was loading reshade, 64bit not.
then I did a install of reshade pointing to VPinballX64.exe using the preset I already have with 32bit in the same folder.
Now both versions work with reshade, using the same shader folder and preset and Big Bang Bar looks better. :-)
 

 

 

Well that's just weird.. what version of reshade did you use?

 

I used 5.70 and as soon as i installed against Vpinballx64 reshade in Vpinballx32 stopped working. Reinstalled against the 32bit vpx and then reshade stopped working in 64bit. I used an existing reshade preset during all the installs.

 

So i'm confused now, not much in the install i could have missed is there?



#337 Gravy

Gravy

    Pinball Fan

  • VIP
  • 1,147 posts

  • Flag: Australia

  • Favorite Pinball: Simpsons pinball party



Posted 23 March 2023 - 12:11 PM

 

No I haven't, not 100% sure how reshade actually knows what exe to run with after installing, perhaps it is just based on the file name? I wonder if you just rename the 64 bit to the original exe name that you installed it on and then changed the 32 filename to something else will it still work?

If that is the case, maybe you could create a bat file that renames the files each time you want to play on either the 32 or 64 version?

 

 

 

It looks like reshade will work on any vpinballx**** .exe in the folder of the program you installed it against that runs on the same platform (32bit or 64bit) and isn't file name dependent.

I think the platform issue is due to the directx libraries it copies across during the install, they must be only 32 or 64 bit. So no easy fix i can think of except using different folders for 32bit and 64bit versions of VPX (too much of a change for me at this time as i only intend to use 64bit for a couple of tables, and there is a chance i might move away from reshade with VPX 10.8 too if the anaglyph modes are improved with opengl)

 

 

 

(reshade 5.7 also seems to have messed up my trioviz settings, so something else to update... ho hum)

 

The trioviz shader got updated, just needed to increase separation value for the new version (think i was using a value near zero before, now near 6.5)

 

Good stuff... I haven't been able to play in 3D for a while due to GPU going AWOL. I'll bite the bullet and spend some money later in the year.

10.8 GL will hopefully work with Superdepth I think, just need to change the API to opengl when installing reshade. I haven't been able to test if it does work as 10.8 crashes on every table I try (I am very crippled without GPU now and only have my laptop's HD4000 to play.) Would be nice if the 3D worked better natively but superdepth3D is a lot more configurable even if it does take a FPS hit, plus I doubt if trioviz will be supported natively, but who knows.


Pinball Addict


#338 Tiki

Tiki

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Location:Germany

  • Flag: Germany

  • Favorite Pinball: Medieval Madness, Tales of Arabian Nights, Creature from the black Lagoon

Posted 23 March 2023 - 04:32 PM

 

 

Well that's just weird.. what version of reshade did you use?

 

I used 5.70 and as soon as i installed against Vpinballx64 reshade in Vpinballx32 stopped working. Reinstalled against the 32bit vpx and then reshade stopped working in 64bit. I used an existing reshade preset during all the installs.

 

So i'm confused now, not much in the install i could have missed is there?

 

My Reshade is Version 5.7
strange...
 


vpforumstiki.jpg


#339 Gravy

Gravy

    Pinball Fan

  • VIP
  • 1,147 posts

  • Flag: Australia

  • Favorite Pinball: Simpsons pinball party



Posted 04 May 2023 - 04:01 AM

There's a report of the depth map being different (not as deep) in 10.8 as well as no depth in GL.

 

https://github.com/v...ment-1534053394

Has anyone been successful in getting vpx 10.8 GL to display depth properly in Superdepth3D or also noticed the depth issue in DirectX version of 10.8?


Pinball Addict


#340 Gravy

Gravy

    Pinball Fan

  • VIP
  • 1,147 posts

  • Flag: Australia

  • Favorite Pinball: Simpsons pinball party



Posted 06 May 2023 - 04:36 AM

Vincent has confirmed that there has been a change to the depth map range in 10.8 to fix a bug related to reflections, however this is causing some issues with Superdepth3D (depth and granularity have been reduced as well as some tables floating above the screen). Suggest reading the github thread about this as it's quite an important issue for Superdepth3D users that intend to switch to 10.8 . Make a comment in the thread below if this affects you.

https://github.com/v...ball/issues/427


Pinball Addict