NVIDIAGameWorks / NVIDIAGameWorks/rtx-remix

[Runtime Bug]: Viewport changes causes 3D stretching

Open
#600 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug jira runtime
Dominant language
No language data
Stars
1.7k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Deus Ex during conversations with a 1280x720 window and the altered D3D9 viewport described here. Trace the runtime's viewport handling for that path; done means 3D graphics retain their proportions and render within the specified viewport rather than stretching.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.