NVIDIAGameWorks / rtx-remix

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

[Runtime Bug]: Viewport changes causes 3D stretching #600

Open mmdanggg2 opened 2 months ago

mmdanggg2 commented 2 months ago

Describe the bug

When the D3D9 viewport is not set to the full window the rendered image is stretched incorrectly.

How do you reproduce the bug?

Open a game with an altered viewport Deus Ex when in conversations is one example where on a 1280x720 window the viewport is set as such:

  Name Value Type
d3dViewport {X=0 Y=74 Width=1280 ...} _D3DVIEWPORT9
  X 0 unsigned long
  Y 74 unsigned long
  Width 1280 unsigned long
  Height 495 unsigned long
  MinZ 0.00000000 float
  MaxZ 1.00000000 float

What is the expected behavior?

Non stretch 3D graphics are rendered into the specified viewport.

Version

remix-main+bccdf94e bridge: remix-main+8248167a

Logs

No response

Crash dumps

No response

Media

Without remix: Screenshot 2024-09-05 003326 With remix: Screenshot 2024-09-05 003242

https://github.com/user-attachments/assets/8fe9f574-eeb7-45f3-9d77-903504c6b4ae

NV-LL commented 2 months ago

REMIX-3530 for tracking