Saturday, June 2, 2018

Prince of Persia: The Sands of Time

3D Vision fix for Prince of Persia: The Sands of Time. Tested with the GOG version.

- Effects like fog and bloom are correctly stereoized thanks to the driver profile tweak in the installation steps.
- Water effects, if you turn on that effect in the graphics options.
- HUD is now at screen depth instead of being affected by convergence. See the "F4" and "F5" hotkeys. The pause and main menu interfaces were already at screen depth and aren't affected by the depth presets.

- Open the "Prince of Persia" profile with Nvidia Profile Inspector and set "StereoTextureEnable" to "0x00000027" as shown in this image.

- Download this file and extract its contents in the "Prince of Persia The Sands of Time" folder, where "PrinceOfPersia.EXE" is.
- Preferably download the widescreen mod from here to be able to use any resolution and rename its "d3d9.dll" to "d3d9_res.dll" before copying the files to the game folder. Alternatively, and in case something happens to that website, I've packed the fix with the widescreen mod together. You may prefer to download this directly.
- Open "pop.ini" (the config file of the widescreen mod) and set your resolution and other settings to your liking.
- Open "DX9Settings.ini" and change the "ProxyLib = D:\GOG\Prince of Persia The Sands of Time\d3d9_res.dll" line to the path of your "d3d9_res.dll". Remember to not use quotes.
- Launch the game.

Both fix downloads contain my "prince_of_persia_profile.nip", which is the game profile already configured for 3D and also with 8xMSAA + 8x Transparency Supersampling. It also has HBAO+, but I think I read it's something that can't be forced at the same time as 3D Vision is enabled.

- F1: high convergence preset.
- F2: medium convergence preset.
- F3: low convergence preset.
- F4: HUD depth presets.
- F5: HUD toggle. Not disabled by default.
- F6: blur effect toggle. It also disables the low resolution distortion effect that appears when you go back in time. Not disabled by default. I recommend using this if you want a clearer picture, as the screenshots above show.

Bloom disabling (optional)
I couldn't make it a toggle successfully, so it's a static shader file that will disable the effect instead. If you want to use it, open the "disable_bloom" folder and merge its "shaderoverride" folder with the one in the game folder. Delete the "shaderoverride/pixelshaders/ABB07F2E.txt" file when you want to enable bloom again.

If you liked the fix and want to contribute for more future fixes, you can donate to this PayPal account:


  1. Thanks masterotaku, I think it's considered to be the best in series, I'll buy it next time it's on sale :)

    1. I'm glad that you like it. I'm doing a proper POP Warrior Within fix too (save for one screen depth distortion effect it's perfect) that I'll publish when I finish the game, and then I'll do POP The Two Thrones.

    2. Pressing 'R' to slow the time makes the game VERY blurry when it (slowing) ends (when blur is disabled). You have to Alt + Tab to minimize the game to fix it.

      Also what exactly F1 - F5 are supposed to do? I don't see any difference when using them in comparison to F6 where the effect is obvious.

    3. I'm using the Steam version, and I'm not seeing this extra blur when slow-mo or rewind ends. It seems OK to me, and doesn't stay blurry where I'd need to alt-tab out.

      F1-F3 are different convergence levels, just a convenience. You can use F3 for example when a cut scene plays, to make it easier to see.

      One thing though- I did need to disable the Fog setting, it wasn't playable until I did that, and it's not in the instructions.