Sunday, March 15, 2020
Stereo Image 1
Stereo Image 2
Stereo Image 3
Stereo Image 4
Stereo Image 5
3D Vision fix for Black Mesa, the 2020 release. Tested with the March 2020 version, the first complete release.
Special thanks to bo3b for helping me test the fix in the early phases, and teaching me how to make a Lua script and convert shaders to Shader Model 3 properly.
Fixed
•	Shadows and dynamic shadows.
•	Lighting.
•	Haloing problems.
•	Completely stereoized water reflections and refraction.
•	All kinds of fog, smoke and fire.
•	Sun position.
•	Light shafts.
•	Fixed distant geometry that was too close to the camera. There are some exceptions due to conflicts with other effects. Multiplayer maps are fixed too. Check the known issues section.
•	Stereoized specular reflections for a more realistic look. Use the "8" key to disable this.
•	HUD and lens flares at depth (3 presets).
Known issues
•	Sometimes (rarely, but enough times for me after heavy testing), when loading a save graphics will be broken, looking like there are transparency issues. Reload the save again or a few times and the problem will disappear.
•	Some distant geometry is still close to the camera. This is because that same shader is used for other things. Important example: "DF97175D.txt.ps" in "shaderoverride\vertexshaders". If you uncomment the "//mad r11.x, r10.x, r10.w, r11.x" line, a big texture of a mountain you descend in chapter 12 will be perfect, but it will break some fire attacks of the final boss in chapter 18.
•	There is one type of lens flares that scale badly with convergence. It's the same shader (VS and PS) as the HUD and some grass, so I can't modify it without breaking something else.
•	The stereoization of specular reflections stops receiving camera position information (it's essential) when there are no dynamic lights in the scene. This doesn't happen too much. Only in some parts of some missions with too simple graphics. Workaround: turning on your flashlight.
Installation
•	Open the "Black Mesa" profile (or make a new one for "bms.exe" if it doesn't exist) with Nvidia Profile Inspector and set "StereoProfile" to "Yes" and "StereoTextureEnable" to "0x00000027" as shown in this image.
Stereo Image 6
•	Download this file and extract its contents in the "Black Mesa" folder, where "bms.exe" is.
•	Run the game.
•	Preferably set "Dynamic lights quality" to "High" or higher. Maximum settings is what I tested the most.
Hotkeys (not the numpad)
•	 distant geometry fix toggle. Fix enabled by default. IMPORTANT: this toggle exists because if your "Dynamic lights quality" setting is lower than "High", the geometry fix will break the graphics pretty badly (maybe not in Xen levels).
•	 realistic specular reflections stereoization toggle. By default they are stereoized, which is what I recommend.
•	 HUD and lens flares depth presets (0%, 94%, 100%). 94% by default.
•	 three convergence presets. You can save the value of your current preset by pressing F7 (in this game that's the quick load key, so I recommend pausing before saving the preset).
Notes
•	I have tested multiple resolutions and a lot of graphics settings in multiple maps. Apparently everything is fixed, but I can't ensure that stereoized specular reflections will always be there with graphics lower than High.
•	If you set graphics so low that you never get dynamic lights, then specular reflections will never be stereoized.
•	HUD and lens flares share the same shader pair, so if you enable the lens flares option, I recommend using the 94% or 100% HUD depth presets.
Dynamic crosshair (the Nvidia one)
•	Open the game profile with Nvidia Profile Inspector.
•	Depending on your NPI version, search the "Rhwscr" option or  "0x70A4995C" (after pressing the "Show unknown settings from Nvidia predefined profiles").
•	Set it to the existing "0x3E19999A (TitanFall)" option.
•	Save the changes.
•	Open the game, open the console and write this command (so you don't see two crosshairs) without the quotes: "hud_crosshair_enable 0"
•	Press ctrl+F12 or whatever is your Nvidia crosshair hotkey if you changed it.
If you liked the fix and want to contribute for more future fixes, you can donate to this PayPal account: masterotakusuko@gmail.com
Posted by masterotaku
