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

[Runtime Bug]: Viewport changes causes 3D stretching

Open mmdanggg2 opened this issue 1 year ago • 1 comments

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

mmdanggg2 avatar Sep 05 '24 00:09 mmdanggg2

REMIX-3530 for tracking

NV-LL avatar Sep 11 '24 22:09 NV-LL