rtx-remix icon indicating copy to clipboard operation
rtx-remix copied to clipboard

[Toolkit bug]: Distant light rotation not matching in game

Open D-Tunez opened this issue 1 year ago • 8 comments

Contact Details (Optional)

[email protected]

Describe the bug

image When I add a distant light in the scene, the rotation of that light does not match the rotation in game kit_20240222_204200.log

How do you reproduce the bug?

  1. Add a distant light and rotate it
  2. Compare in game
  3. (I used NFS Most Wanted, maybe its a game specific bug? No idea)

What is the expected behavior?

The rotation should be the same in the game and the toolkit

Version

2024.1.1

D-Tunez avatar Feb 22 '24 19:02 D-Tunez

Hi @D-Tunez , a couple questions to help us reproduce:

  • Does this only happen to "distant" lights? And are you able to tell us how distant?
  • What kind of light are you creating? And any other specifics to your situation.

If you're able to give us an example mod file that shows the issue that would also be helpful. Thanks!

nxkb avatar Feb 26 '24 17:02 nxkb

@nxkb as far as I know, this happens only with distant lighjts. However, in another scene I don't have this issue, so it doesn't happen all the time.

With distant light I mean this one: image

This is the light I made:

image

I attached it to the skydome

image

I added the mod.usda. Is that enough or do you need something else too?

mod.zip

D-Tunez avatar Feb 26 '24 19:02 D-Tunez

Based on my testing the Distant light's direction is consistent at least in the Remix Sample app, so I suspect this may have something to do with this specific game. There are some known issues with light directionality, though they only affect Rect/Disk lights using shaping right now, so it shouldn't affect this as far as I know.

anon-apple avatar Feb 28 '24 19:02 anon-apple

@anon-apple it shouldn't but it does. In the discord more people see this happen in their games

D-Tunez avatar Feb 28 '24 20:02 D-Tunez

It was an issue for call of duty games (cod4/5) as well (~ December 2023) and I was about to second this. Just noticed that it seems to be fixed now. Distant lights in-game look the same as they do in the toolkit.

One thing that is still off, that might be related to this issue: The fallback distant light direction within the runtime doesn't match the direction I have to set in the toolkit to achieve the same look.

Fallback light direction: 34.6 -22.2 -38.4

Screenshot 2024-03-01 141109

Using the above light direction on a distant light in the toolkit lights up the underside of the map

Screenshot 2024-03-01 141525

The direction needed that somewhat match the look of the fallbacklight: 141 22 82

Screenshot 2024-03-01 143624

xoxor4d avatar Mar 01 '24 14:03 xoxor4d

Hello! Will you please test this on the latest release and let us know if the issue persists? Thank you!

NV-LL avatar May 06 '24 22:05 NV-LL

Hello! Will you please test this on the latest release and let us know if the issue persists? Thank you!

The issue still persists (latest nightly). Ingame: Screenshot 2024-05-07 165046

Toolkit: Screenshot 2024-05-07 165844

Disabling Left Handed Coordinate System before taking a capture does not change that. The distant light in-game is an actual light spawned via d3d9 (so not the fallback light via remix)

xoxor4d avatar May 07 '24 15:05 xoxor4d

Ok @D-Tunez @xoxor4d this should be fixed with the latest toolkit + runtime. The Toolkit does have a way to visualize lights now, so that will at least help troubleshooting.

Note you will need to recapture or run one of the migrations here: https://docs.omniverse.nvidia.com/kit/docs/rtx_remix/latest/docs/toolkitinterface/remix-toolkitinterface-migrations.html

Then let me know which games are still affected and with what issue, for example: Light rotation mismatch in: NFS Fallback light rotation mismatch in: COD 4/5

Thanks!

nxkb avatar Aug 14 '24 22:08 nxkb

@nxkb Issue is fixed with latest toolkit + runtime! (CoD)

xoxor4d avatar Aug 17 '24 16:08 xoxor4d

Awesome thanks for confirming!

nxkb avatar Aug 19 '24 19:08 nxkb