So if anyone wants to try editing the distortion params himself, here’s how to do it. First of all the distortion parameters are stored in tables inside the pi_server.exe file, which is located in C:\Program Files\Pimax\Runtime. You can not edit directly in this write protected directory, so you first need to copy the file to a directory where you have write rights. So:
- Copy/paste pi_server.exe in the same directory and rename the copy “pi_server.org”, for if you want to revert to the original later on. It will ask for admin rights, click yes.
- copy pi_server.exe to a directory where you have write rights, like your desktop
- open that copied file in a hexeditor like hexworkshop.
- The distortion params are stored in config tables. The file contains tables for several HMD’s. For pimax 5k+, search for “Pimax P2 5K Formal” with your hex editor.
- Once you located that, you’ve located the table with params for the 5k+. Inside this table look for: “K”:[1.0000,1.0484,1.1042,1.1800,1.2650,1.3450,1.4200,1.4700,1.4900,1.5000,1.5100,1.5100,1.5200,1.5400,1.5670,1.5900,1.6100,1.6260 ]
Those are the distortion params for the 5k+. The first param should always be 1.0000. It seems that the numbers directly after that are the outer edges. The numbers are going from lower to higher, if you change that order, so make one number higher than the next, you’ll see very weird effects. So you should probably make sure that they keep going from lower to higher.
- after you’re done editing, save the file. Now go to the services tab in your task manager, stop the “piservicelauncher” service. Then copy the edited pi_server.exe over the original file in your pimax directory and start that “piservicelauncher” and you’ll see the new distortion params in effect! Keep in mind that you need 'large FoV" to see changes on the first few params.
If you want to revert, simply copy back the original pi_server.exe (or if you’ve lost it, re-install pitools)