Jump to content



Photo
* * * * * 13 votes

VP with VR headset


  • Please log in to reply
2044 replies to this topic

#721 Caligula_

Caligula_

    Enthusiast

  • Platinum Supporter
  • 74 posts

  • Flag: Germany

  • Favorite Pinball: Addams Family

Posted 02 June 2019 - 05:43 PM

 

 

I just uploaded a new version with all fixes from Rawnei. If you are unsure if you have the latest version, check the Help->About it should show now Revision 3708.

Just tried the new version with Cirqus Voltaire and I have black glitches/Artifacts on different places of the playfield popping up here and there..

 

 

Ah damn, you are right, try replacing BasicShader.glfx with this one https://drive.google...iew?usp=sharing

 

Also updated the zip files.



#722 blindpeser

blindpeser

    Enthusiast

  • Members
  • PipPipPip
  • 421 posts

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

  • Favorite Pinball: WCS94

Posted 02 June 2019 - 07:55 PM

Thanks guys. Works better now. I didnt notice a huge performance boost on Cirqus Voltaire, which is the only table I have major issues with. Is there still room for improvements or should I start to save money for a new GPU?

#723 Caligula_

Caligula_

    Enthusiast

  • Platinum Supporter
  • 74 posts

  • Flag: Germany

  • Favorite Pinball: Addams Family

Posted 02 June 2019 - 08:34 PM

Thanks guys. Works better now. I didnt notice a huge performance boost on Cirqus Voltaire, which is the only table I have major issues with. Is there still room for improvements or should I start to save money for a new GPU?

I started to implement combined Vertex and Index Buffers (the latter is not working properly), but without reordering, batching and merging there is no big performance gain for this. So it is still disabled in this build. Less technical: No big performance boost so far, but I hope that I find more time in the next weeks to continue the work on that (and I hope there will be a big performance boost in the end).

 

Also the current status for the backglass is more or less bad (it was more or less reimplementing everything that could be on a backglass). At the moment I'm thinking about writing an importer for the backglasses which could be less effort and deliver better results.



#724 gear323

gear323

    VPXVR is awesome.

  • Members
  • PipPipPip
  • 324 posts
  • Location:New Jersey

  • Flag: United States of America

  • Favorite Pinball: All

Posted 02 June 2019 - 08:44 PM

It looks like analog nudging may be completely broken in this version now.   I'm using a PinSim and the analog nudging does not work now.  I did double check the settings and analog nudging is still enabled.   

 

 

 

Edit** I also just tried with a regular XBOX gamepad.  Usually the left analog stick can just drive the ball all around the tables.  The left analog stick does not seem to do anything now. 

 

 

Edit 2**   Reinstalled the "OLD" version and analog nudging on my Pinsim and the Xbox gamepad worked fine again.   Installed the latest version again and I have no analog nudging once again. 


Edited by gear323, 02 June 2019 - 09:03 PM.


#725 Rawnei

Rawnei

    Enthusiast

  • Platinum Supporter
  • 320 posts
  • Location:Stockholm, Sweden

  • Flag: Sweden

  • Favorite Pinball: There's too many good ones but I really love the atmosphere in Cirque Voltaire!

Posted 03 June 2019 - 03:46 AM

It looks like analog nudging may be completely broken in this version now.   I'm using a PinSim and the analog nudging does not work now.  I did double check the settings and analog nudging is still enabled.   

 

 

 

Edit** I also just tried with a regular XBOX gamepad.  Usually the left analog stick can just drive the ball all around the tables.  The left analog stick does not seem to do anything now. 

 

 

Edit 2**   Reinstalled the "OLD" version and analog nudging on my Pinsim and the Xbox gamepad worked fine again.   Installed the latest version again and I have no analog nudging once again. 

 

Does it work in latest VPX?



#726 Caligula_

Caligula_

    Enthusiast

  • Platinum Supporter
  • 74 posts

  • Flag: Germany

  • Favorite Pinball: Addams Family

Posted 03 June 2019 - 02:51 PM

 

It looks like analog nudging may be completely broken in this version now.   I'm using a PinSim and the analog nudging does not work now.  I did double check the settings and analog nudging is still enabled.   

 

 

 

Edit** I also just tried with a regular XBOX gamepad.  Usually the left analog stick can just drive the ball all around the tables.  The left analog stick does not seem to do anything now. 

 

 

Edit 2**   Reinstalled the "OLD" version and analog nudging on my Pinsim and the Xbox gamepad worked fine again.   Installed the latest version again and I have no analog nudging once again. 

 

Does it work in latest VPX?

 

I just tested it with Nudge Test and Calibration.vpx - Yes it works with the latest VPX release, but not with VPVR. I broke it with my update commit to VPX3708. I narrowed it down to the function ReadAccelerometerCalibration in pintable.cpp

Fixed it, files should be uploaded within the next few minutes.


Edited by Caligula_, 03 June 2019 - 03:05 PM.


#727 gear323

gear323

    VPXVR is awesome.

  • Members
  • PipPipPip
  • 324 posts
  • Location:New Jersey

  • Flag: United States of America

  • Favorite Pinball: All

Posted 04 June 2019 - 01:07 AM

 

 

It looks like analog nudging may be completely broken in this version now.   I'm using a PinSim and the analog nudging does not work now.  I did double check the settings and analog nudging is still enabled.   

 

 

 

Edit** I also just tried with a regular XBOX gamepad.  Usually the left analog stick can just drive the ball all around the tables.  The left analog stick does not seem to do anything now. 

 

 

Edit 2**   Reinstalled the "OLD" version and analog nudging on my Pinsim and the Xbox gamepad worked fine again.   Installed the latest version again and I have no analog nudging once again. 

 

Does it work in latest VPX?

 

I just tested it with Nudge Test and Calibration.vpx - Yes it works with the latest VPX release, but not with VPVR. I broke it with my update commit to VPX3708. I narrowed it down to the function ReadAccelerometerCalibration in pintable.cpp

Fixed it, files should be uploaded within the next few minutes.

 

 

 

Thanks Caligula, 

 

I can confirm that this new update fixed my issue with the analog nudging. 

 

Thanks for the super quick fix!    :)


Edited by gear323, 04 June 2019 - 01:08 AM.


#728 gear323

gear323

    VPXVR is awesome.

  • Members
  • PipPipPip
  • 324 posts
  • Location:New Jersey

  • Flag: United States of America

  • Favorite Pinball: All

Posted 04 June 2019 - 03:43 AM

Hi Caligula and Rawnei.  In this latest version of VPX VR everything really looks amazing.   Most of the weird reflections are resolved on the tables, the lighting looks good and the reflections on the ball now look really nice.   I'm surprised there isn't more people commenting about this version.  Maybe they have not yet downloaded it  :)
 
Anyway, Thanks again guys!   great work!    Getting better every version!  My Valve index can't come soon enough.. Hopefully just another 3 weeks or so. 

Edited by gear323, 04 June 2019 - 05:18 AM.


#729 Rawnei

Rawnei

    Enthusiast

  • Platinum Supporter
  • 320 posts
  • Location:Stockholm, Sweden

  • Flag: Sweden

  • Favorite Pinball: There's too many good ones but I really love the atmosphere in Cirque Voltaire!

Posted 04 June 2019 - 04:06 AM

Hi Caligula and Rawnei.  In this latest version of VPX VR everything really looks amazing.   Most of the weird reflections are resolved on the tables, the lighting looks good and the reflections on the ball now look really nice.   I'm surprised there isn't more people commenting about this version.  Maybe that have not yet downloaded it  :)

 

Anyway, Thanks again guys!   great work!    Getting better every version!  My Valve index can't come soon enough.. Hopefully just another 3 weeks or so. 

 

Thanks! There are still some visual things I want to improve but we're getting there. :)

 

Same here, can't get my index soon enough!



#730 mouja

mouja

    Hobbyist

  • Silver Supporter
  • 14 posts

  • Flag: France

  • Favorite Pinball: F14-Tomcat

Posted 04 June 2019 - 06:21 AM

It's already so great with the CV1 for me, thanks all of you, but the index might be the perfect fit for VPVR. Great visuals  and large FOV for seeing both the table and the DMD at the same time. 



#731 darrin578

darrin578

    Neophyte

  • Members
  • Pip
  • 4 posts

  • Flag: Australia

  • Favorite Pinball: Back to the future

Posted 04 June 2019 - 09:59 AM

This is amazing work.  Big thanks to all involved.  Is there any way to adjust the world scale in VR?  I seem to perceive the tables as about three quarter sized through the headset.  I'm running a Vive with the Gear VR lense mod.  I know many other sims and games have options to adjust perceived scale but I couldn't find any information in my reading here. 


Edited by darrin578, 04 June 2019 - 10:00 AM.


#732 Rawnei

Rawnei

    Enthusiast

  • Platinum Supporter
  • 320 posts
  • Location:Stockholm, Sweden

  • Flag: Sweden

  • Favorite Pinball: There's too many good ones but I really love the atmosphere in Cirque Voltaire!

Posted 04 June 2019 - 11:21 AM

This is amazing work.  Big thanks to all involved.  Is there any way to adjust the world scale in VR?  I seem to perceive the tables as about three quarter sized through the headset.  I'm running a Vive with the Gear VR lense mod.  I know many other sims and games have options to adjust perceived scale but I couldn't find any information in my reading here. 

 

Hi, nope it does not, not sure how hard that would be to implement. I haven't seen this feature in a lot of games only in Tethered where it's an ingame gimmick. The question is why your scale is off to start with, I mean a lens mod shouldn't change scale? Is it IPD related?

 

Found this, could it be something? https://www.reddit.c...le_for_any_app/


Edited by Rawnei, 04 June 2019 - 11:26 AM.


#733 Caligula_

Caligula_

    Enthusiast

  • Platinum Supporter
  • 74 posts

  • Flag: Germany

  • Favorite Pinball: Addams Family

Posted 04 June 2019 - 03:00 PM

 

This is amazing work.  Big thanks to all involved.  Is there any way to adjust the world scale in VR?  I seem to perceive the tables as about three quarter sized through the headset.  I'm running a Vive with the Gear VR lense mod.  I know many other sims and games have options to adjust perceived scale but I couldn't find any information in my reading here. 

 

Hi, nope it does not, not sure how hard that would be to implement. I haven't seen this feature in a lot of games only in Tethered where it's an ingame gimmick. The question is why your scale is off to start with, I mean a lens mod shouldn't change scale? Is it IPD related?

 

Found this, could it be something? https://www.reddit.c...le_for_any_app/

 

 

Since VPX uses a different scale than OpenVR, there is already a scaling factor in RenderDevice.cpp:2574:

const float scale = 0.000540425f;// Scale factor for VPUnits to Meters

 

At the moment it is hardcoded, but it could also be made changeable. I was even thinking about a function to adjust all tables to my PinSim Controller width (or any adjustable width), so that the immersion is even better, but I had no time to implement this feature yet.


Edited by Caligula_, 04 June 2019 - 03:01 PM.


#734 Rawnei

Rawnei

    Enthusiast

  • Platinum Supporter
  • 320 posts
  • Location:Stockholm, Sweden

  • Flag: Sweden

  • Favorite Pinball: There's too many good ones but I really love the atmosphere in Cirque Voltaire!

Posted 04 June 2019 - 04:12 PM

 

 

This is amazing work.  Big thanks to all involved.  Is there any way to adjust the world scale in VR?  I seem to perceive the tables as about three quarter sized through the headset.  I'm running a Vive with the Gear VR lense mod.  I know many other sims and games have options to adjust perceived scale but I couldn't find any information in my reading here. 

 

Hi, nope it does not, not sure how hard that would be to implement. I haven't seen this feature in a lot of games only in Tethered where it's an ingame gimmick. The question is why your scale is off to start with, I mean a lens mod shouldn't change scale? Is it IPD related?

 

Found this, could it be something? https://www.reddit.c...le_for_any_app/

 

 

Since VPX uses a different scale than OpenVR, there is already a scaling factor in RenderDevice.cpp:2574:

const float scale = 0.000540425f;// Scale factor for VPUnits to Meters

 

At the moment it is hardcoded, but it could also be made changeable. I was even thinking about a function to adjust all tables to my PinSim Controller width (or any adjustable width), so that the immersion is even better, but I had no time to implement this feature yet.

 

 

Ah, cool!



#735 Rawnei

Rawnei

    Enthusiast

  • Platinum Supporter
  • 320 posts
  • Location:Stockholm, Sweden

  • Flag: Sweden

  • Favorite Pinball: There's too many good ones but I really love the atmosphere in Cirque Voltaire!

Posted 04 June 2019 - 08:02 PM

I made a discovery in regards to environment maps on a lot of tables, I always thought that some tables looked off in VR creating some very bright areas almost as if there is strong light coming from behind your head.

 

It turns out it's nothing wrong with the rendering, everything is working as intended, it's actually that a lot of tables use some very bright and sharp environment maps for instance one named "Env TT2" which looks like a bright office with light panels and that will not produce any good results in VR, now the one from TAF called "shinyenvironment3blur4" for example is much more suited for VR.

 

An example table where this is very apparent if you want to check it out is Tron G5k's version 2.2 which is a dark table that uses Env TT2, you will see what I mean very clearly on the apron and on the sides.

 

So my very strong recommendation: If you think the lighting on a table is too bright with big bright square patches on the table, swap the environment map to something darker with less contrast, "shinyenvironment3blur4" which is used in for instance TAF is a good baseline that you could theoretically use on most if not all tables.

 

For those not familiar how to do this, in the VPX editor, in the right hand side menu, at the bottom there is a lighting section where can switch the environment map for the table, see the attached image. And in the top menu at "Table > Image Manager" you can export and import images so you will need to import the new environment image first.

Attached Files



#736 blindpeser

blindpeser

    Enthusiast

  • Members
  • PipPipPip
  • 421 posts

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

  • Favorite Pinball: WCS94

Posted 04 June 2019 - 08:11 PM

@Rawnei: I just created a HDR image that is almost white and replaced the environment image on every table and got rid of envmap completely. Especially on the floor and on darker table envmap just looks weird.

@Cali and @Rawnei : I have better performance on the previous VPVR version.

Edited by blindpeser, 04 June 2019 - 08:13 PM.


#737 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 05 June 2019 - 12:00 PM

Anyone else try running Virtual desktop and then PinballX to browse and run tables?  Someone else mentioned it and I never thought about this idea.  I have been playing around with it a bit but ran into many troubles.  Tough to get back to PinballX after running table, or even to get focus to table, so I thought a few ahk scripts would fix it up.  I have got it to run once but not more.  I then thought about just turning off steamVR and use OpenComposite, which seemed to work a bit better but still troubles exist.  Just wondering if anyone else has had any luck?

 

Well just made some progress, at least with Oculus I don't really need to run the program "Virtual Desktop" as its kind of build in.  this worked my 1st time, but not 2nd so getting closer.    Yeah.   Still interested in what others have done though

 

 

OK, 2nd edit.  It pretty much works if I turn off steamvr and use OpenComposite and just run PinballX with the Built in Oculus Virtual Desktop from Oculus Home.  This works fairly well with no ahk scripts needed!  I just setup a new type in PinballX for VR and pointed that at the GL exe of VP, this way I can run pinballX in regular desktop and in VR, yeah!


Edited by Slydog43, 05 June 2019 - 12:26 PM.


#738 Karlor

Karlor

    Goon Squad

  • Platinum Supporter
  • 397 posts

  • Flag: United States of America

  • Favorite Pinball: The Machine Bride, Freddy, TOTAN, Twister, Batman, TZ, Ghostbusters

Posted 06 June 2019 - 12:05 AM

Wowza! Been away for a bit and can't wait to give this new new version a shakedown tonight! Thanks Calig and Rawn for trucking along on this... and theres even a POTO hot and fresh I see! Hot damn

 

So has anyone messed around with a front end? Ive never really been able to get a cool front end working 100% anyway, but has anyone tried them in VR?

 

As awesome as VR is, its a safe bet thats its here to stay.. and it's only going to get better and better.. so my point is maybe its time to have a chat about a VR front end and maybe what that would look like? Has anyone experimented around yet on that side of things or maybe heard of anything in the works?


 I'm just going to set this here and go get a cup of coffee.. DONT TOUCH ANYTHING!! :pardon:  NOT MY LINKS BUT ENJOY  :crazy:

:love39:  *** https://archive.org/details/pinmame31 *** :twiddling:

 


#739 gear323

gear323

    VPXVR is awesome.

  • Members
  • PipPipPip
  • 324 posts
  • Location:New Jersey

  • Flag: United States of America

  • Favorite Pinball: All

Posted 06 June 2019 - 02:35 AM

I have a question that hopefully someone here can assist me with.   I have been fixing the DMD on tables that I have downloaded.   Most of the tables i'm successful on.   However, there are tables like The Simpsons, Whirlwind or Bride of Pinbot that already have a DMD but it is lying flat on the table on the playfield or lying flat outside of the table to the right side.   Anyone know how to fix these?  Is there an easy way to identify what object they a are so that i can modify their properties in the editor?  I'm thinking that if I knew what object they are, I may be able to change the location and rotation to the proper place / setting.  


Edited by gear323, 06 June 2019 - 03:18 AM.


#740 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 06 June 2019 - 02:13 PM

Karlor, what headset are you using?  If an Rift/RiftS and you have dash 2.0 (I think everyone has it now) then you can run PinballX with a Virtual Desktop and it works great.  I had better luck using OpenComposite to turn off SteamVR though.  What front end do you want to use?


In a VPX table script, can I get the running exe filename?   I want to include changes to scripts, but I only want to do things if the exe is a GL variety, ie its running in VR vs Cabinet/Desktop mode.