Enable Ray Tracing in VaM (only for Nvidia GPUs and desktop mode)

Guides Enable Ray Tracing in VaM (only for Nvidia GPUs and desktop mode)

Nvidia released a new driver 511.23 (https://www.nvidia.com/en-us/geforce/news/god-of-war-game-ready-driver/) which adds new depth-based filters from the Reshade author. One of these is a Ray Tracing ReShade Filter called SSRTGI. You can use this filter in Nvidia Freestyle using the GeForce Experience overlay menu (usually Alt+F3). This improves graphics quite a bit, especially ambient occlusion shadows and bounce lighting from objects onto characters (see the red light from the wall in screenshot below). The downside is upto 30-40% FPS hit. Raytracing filters were already available in Reshade, I feel this is a much easier (and free) way to try it out.

comparison.jpg

Another raytracing comparison with slider: https://imgsli.com/OTIxMDc

Caveat: There are only a few games that officially support the raytracing filter, but there's a trick to make it work for unsupported games by renaming the exe. I'll go over it in the steps below.

Note: You need to install GeForce Experience while installing Nvidia driver, and obviously this only works on Nvidia cards. Also this works only on desktop mode, not in VR.


Steps:
  1. Install GeForce Experience with the latest driver 511.23+. Restart PC.
  2. Go to VaM installation folder. Rename VaM.exe to SOTTR.exe, and the folder VaM_Data to SOTTR_Data
    Shadow of Tomb Raider(SOTTR.exe) is a supported game, so we rename the exe to trick GeForce Experience into working with our game.
  3. Run the game (if you use bat scripts, change VaM.exe to SOTTR.exe in the command there). Press Alt+F3 (or any other keybind you've set for GeForce Experience/Nvidia Freestyle overlay).
  4. Click Add Filter and choose SSRTGI
  5. You can change the effect intensity, ambient occlusion and indirect lighting intensity to your liking.
    Settings I use: Intensity=40%, Quality=Low, Ambient Occlusion=80%, Indirect Lighting=60%, Fade Distance=30%, Turn on both Invert Depth Z/Y-Axis buttons.
    Quality is the only setting that affects FPS. Anything above low is very heavy on FPS.
    You can use Invert Depth Z-Axis as on-off toggle for comparison.
  6. WARNING: Although the effect doesn't work in VR, it'll still apply it to the VaM window on desktop when you run VR, and cause a huge FPS drop. Make sure to disable the effect on desktop using Alt+F3 after you launch VR.

Turning on raytracing effect can cause blocky appearance on characters. Use any of the tessellation plugins like AutomaticBodySmoother (https://hub.virtamate.com/resources/automaticbodysmoother-session-plugin.5235/) on the Person to smooth it out.

Apart from SSRTGI, the SSAO filter is also pretty similar but has lower quality and only slightly better FPS so not worth it.
Feel free to comment any improvements/tips you find.

Tips/Issues:
  1. Screenshots: Currently, screenshots with the ingame tool or supershot don't capture the raytracing effects. Use external tools like the GeForce Experience screenshot (Alt+F1) to capture at screen resolution.
  2. Guide to use additional reshade shaders with GeForce Experience: https://github.com/crosire/reshade-shaders/tree/nvidia
    SMAA and FXAA from this work really well combined with MSAA 2x in game. Better performance and AA quality.
  3. PostMagic depth of field: Using the SSRTGI shader with DoF will add shadows to far away blurred objects and it looks a bit weird. Reduce Fade Distance below 20-30% or reduce intensity to fix this.
  • Sample 1 - Base Game.jpg
    Sample 1 - Base Game.jpg
    538.3 KB · Views: 0
  • Sample 1 - RayTracing.jpg
    Sample 1 - RayTracing.jpg
    519.7 KB · Views: 0
  • Sample 3 - Base Game.jpg
    Sample 3 - Base Game.jpg
    1,009.7 KB · Views: 0
  • Sample 3 - RayTracing.jpg
    Sample 3 - RayTracing.jpg
    1 MB · Views: 0
  • Sample 4 - Base Game.jpg
    Sample 4 - Base Game.jpg
    618.7 KB · Views: 0
  • Sample 4 - RayTracing.jpg
    Sample 4 - RayTracing.jpg
    622.7 KB · Views: 0
Author
vamrtx
Views
34,206
First release
Last update
Rating
5.00 star(s) 16 ratings

Latest updates

  1. Added more screenshots. Updated information

    Added 3 more screenshots. Updated some parameter values, and added tips/issues for raytracing.

Latest reviews

awesome, thx
Upvote 0
Thanks for the tip. I got it working.

For a slightly less destructive approach (avoid renaming VaM_Data folder), at least in Windows 10, you can run an administrator command prompt and use the following to make a sym link (a renamed shortcut to existing folder basically) to VaM_Data:

mklink /D SOTTR_Data VaM_Data
Upvote 3
amazing trick... big thanks for the sharing
Upvote 0
Thank you for this. I expected to take a massive FPS hit, but honestly, the 5fps i might lose is worth the look. And it's stupid easy to get running. Thanks!
Upvote 0
like
Upvote 0
What should I rename my VR file? I've noticed when I rename the exe to SOTTR I can't open VR mode without renaming the file back to VaM. I am referring to the VaM (OpenVR).bat fie, thanks!
V
vamrtx
You'll need to change VaM.exe to SOTTR.exe in the VR bat file too. Like: START "VaM" SOTTR.exe -vrmode OpenVR
Upvote 0
So good!
Upvote 0
oh wow, i already tryed to enable this but coudnt achieve. You found the rename exe trick , good find ! thanks
Upvote 0
Thanks so much, really given the game a new lease of life! Took a bit of fiddling to get to work but worth it.
Upvote 0
Looks amazing thanks for sharing, should use this for the fps impact https://nvidia.custhelp.com/app/answers/detail/a_id/5280/~/how-to-enable-nvidia-image-scaling
And for the lazy copy this and save in a .bat file
START "VaM" SOTTR.exe -vrmode None -screen-width 2954 -screen-height 1662 -screen-fullscreen 1
Upvote 1
Back
Top Bottom