NVIDIAGameWorks / rtx-remix

Combined repo for the RTX-Remix runtime
https://www.nvidia.com/en-us/geforce/rtx-remix/
MIT License
1.37k stars 69 forks source link

[Runtime bug] Capture Left-handed setting has no effect/Rect lights are mirrored [Max Payne 1] #494

Open PappaSlask opened 5 months ago

PappaSlask commented 5 months ago

Describe the bug The Scene Left-Handed Coordinate System checkbox in the Remix ingame UI has no effect on my captures, which causes lights to point in the wrong direction and not being synced with the game. It used to work fine before, but was broken some time ago. EDIT: It works on dxvk build 265!

Somewhere between build 265 and 420, the function was removed. Because it's not present in 0.4.1/420-423.

Some closer details on this was added by Mark on the Remix discord: I know the left handed option was removed here: https://github.com/NVIDIAGameWorks/dxvk-remix/commit/c754bd19d94d11b4f9375241b377761f3fa87285 and then a newleft handed option was added back in with this PR: https://github.com/NVIDIAGameWorks/dxvk-remix/commit/aea8f5cc89f5b3f65e71f2f94460af8b6c8e9bbb

Using dxvk version 265, when enabling Left-handed capture, my captures actually receive a negative value for the Z Scale, applied to the instance meshes, effectively making the whole level mirrored. But, it will also sync up lights positions and directions with the game correctly, which is desirable. The best would be to have lights directions synced with the game while also not having to show up mirrored in Composer/toolkit.

Temporary solution to this issue: In Composer, make the capture layer the authoring layer, then go to stage tab and select instances, in the options panel press Add Transforms, and then set a minus before the value for X Scale on transforms (e.g -1.0)

d3d9.log NvRemixBridge.log MaxPayne_d3d9.log rtx - Copy.conf.log

To Reproduce Steps to reproduce the behavior:

  1. Load game
  2. Flip on Left-handed setting
  3. Capture a scene
  4. Load cap in Kit or Composer, notice the level layout
  5. Restart the game, turn off Left-handed capping
  6. Cap the scene again
  7. Open the scene in Kit or Composer and notice it's identical to your first capture.

Expected behavior

PappaSlask commented 4 months ago

Ticket updated with more details. Sorry for not adding enough information and context from the very start!

nv-nfreybler commented 4 months ago

Captured lights not applying the same inversion + handedness correction was known and very recently fixed. Please try this build, and if the problem persists, then we will go ahead and track the issue internally.

nv-nfreybler commented 4 months ago

REMIX-2828 and REMIX-2703 for tracking

PappaSlask commented 4 months ago

Captured lights not applying the same inversion + handedness correction was known and very recently fixed. Please try this build, and if the problem persists, then we will go ahead and track the issue internally.

Hello @nv-nfreybler This has nothing to do with captured lights. We generally never capture vanilla lights from the game, because we like to add our own custom lights.

Furthermore, I tried the special build I was suggested. This is what I found:

PappaSlask commented 2 months ago

@nv-ajaus Hi Alex! Any updates on this sir?

PappaSlask commented 1 week ago

@NV-LL Any update on this guys?

nsubtil commented 1 week ago

Hi @PappaSlask, sorry for the delay here, we ran into a process snag with the various tickets involved and missed posting an update on this one.

We found and fixed a number of issues a couple of months ago that caused lights to be oriented/positioned incorrectly in some instances, both in runtime captures as well as when lights are loaded from toolkit into runtime. I'm not sure if this covers all that you described in your May 10 comment, but I suspect it might address most of it --- have you re-tested this on the latest released runtime + toolkit? Are you still seeing the same symptoms?