Monday, October 18, 2021

Quake II RTX [Vulkan] [OpenGL]



3D Vision fix for Quake II RTX, for both the Vulkan API (for RTX) and OpenGL (non RTX).

A GPU that supports ray tracing is required to make it work in Vulkan. I only have a Nvidia GPU, so I can't ensure first hand that AMD will work.

To use the "prefer KHR_ray_tracing_pipeline" ray tracing API with Nvidia, you need some drivers newer than 452.06 (I used 472.12, so think about them as the minimum). However, "prefer NV_ray_tracing" works fine with 452.06 and newer.


Fix in OpenGL done with OpenGL3DVision. For outputs different than 3D Vision, check and configure the "3DVisionWrapper.ini" file. It's just the OpenGL wrapper configured in legacy mode with preconfigured 16 convergence (if you run the game as admin at least once), therefore it won't be mentioned in many of the post sections. Crosshair not at depth.

Fix in Vulkan done with Vk3DVision. For outputs different than 3D Vision, check and configure the "Vk3DVision\Vk3DVision.ini" file or read the included manual.


Fixed

  • Ray tracing shaders (stereoized geometry, shadows, reflections, volumetric lighting... everything) for the two compatible ray tracing APIs.
  • Partially fixed denoiser, with a hotkey to optionally remove its "temporal" effect.
  • HUD and crosshair are set to 95% depth.

Known issues
  • The denoiser, if you use it, is only partially fixed (only the center of the screen is supposedly correct) and it can negatively affect some reflections if the temporal part isn't disabled with the F1 hotkey.

Installation
  • I recommend running the game at least once first and configuring all the settings and output resolution.
  • In the video options, select "rtx" as the renderer and set "ray tracing API" to "prefer NV_ray_tracing" or "prefer KHR_ray_tracing_pipeline". Do not use "KHR_ray_query" because it isn't supported by Vk3DVision.
  • Don't enable "anti-aliasing", as it isn't fixed in 3D. Use the "none" option.
  • Download this file and extract its contents in the "Quake II RTX" folder, where "q2rtx.exe" is.
  • Open "Vk3DVision.exe" and then run the game. By default the presentation is configured for 3D Vision monitors in DX9. Open "Quake II RTX\Vk3DVision\Vk3DVision.ini" and change the "Stereo3DViewMode = 3DVision" line to what you need.
  • Dynamic resolution scaling and the resolution percentage are safe options to change while playing in 3D. Only the "ray tracing API" option causes problems when changed while in 3D, and presumably changing the output resolution too.

To launch the game in OpenGL (no ray tracing), select that as the renderer and just play normally.


Recommendations
  • In my case, "prefer NV_ray_tracing" performs better than "prefer KHR_ray_tracing_pipeline".
  • Unless you don't like the look, I recommend playing with the denoiser disabled in the video options, because the fix in that case doesn't present any problems. The F8 key toggles the denoiser in real time. Also, the denoiser drops performance.
  • If you get a red warning when opening the game in 3D Vision, try opening a 3D screenshot before playing the game (you can do it after too, if you alt+tab out).
  • The F1 to F5 hotkeys from the fix are also used by the game. You can unset them or change them in the "function key bindings" menu.

Hotkeys (Vulkan)
  • F1: toggle to remove the temporal part of the denoiser. The game will look more flickery but there won't be any stereoization bugs. Most of the denoiser work will be valid, but dark areas may suffer.
  • F2: 0 convergence. Not much use to this. Change it to another value if you want.
  • F3: 16 convergence. Default value.
  • F4: 25 convergence.
  • F5: 50 convergence.

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

3 comments:

  1. Nifty! I'll definitely be checking this one out whenever i can finally get an RTX card!

    Fyi for those who would prefer the original: the retail version works in 3D Vision using QindieGL if you rename the exe. (Mine is renamed quake23D.exe, but most anything should work.)

    ReplyDelete
  2. About time we got this baby running!!! Very nice and congrats!!!

    ReplyDelete
  3. Doesn't seem to work with the latest 1.7.0 patch. The menus are stereoscopic but not any gameplay.

    ReplyDelete