Streamline FG constants: leave the camera's motion to the motion vectors (object-edge ghosting in generated frames) #554

Open
github-bot wants to merge 1 commit from github-bot/gh-554 into main AGit
Owner

@⁠lingbz112 on GitHub · 2026-12-06 02:25 UTC · original
lingbz112:fix/streamline-fg-camera-ghosting → main · +44 −19 · 1 files · 1 commits · open

What

With frame generation on the Streamline backend, the generated frames ghosted along every object's edge — foliage, vehicle silhouettes, and glow smears around bright light sources — while the upscaled picture itself was clean.

Cause

The frame's Streamline constants told DLSS-G two conflicting things at once:

  • the motion vectors already carry the camera's motion (camera_motion_included = true), and
  • they also carried real camera motion matrices (clip_to_prev_clip / prev_clip_to_clip) and a real camera pose.

With the camera's motion counted twice, generated frames misplaced objects against the background. The error showed worst at depth discontinuities — exactly at every object's edge.

Fix

ForStreamline::constants now gives the constants as Darner gives them (which shows generated frames clean):

  • the clip-to-clip matrices stay the identity and the camera stands at the origin: the camera's motion is left to the motion vectors that carry it
  • the projection is built in the same layout from the frame's planes, field of view and render aspect (a far plane past 1e30 treated as infinite)

Everything else — jitter, motion vector scale, depth and the flag fields — is unchanged.

Testing

In-game before/after comparison with frame generation on: edge ghosting on foliage and vehicle edges and the glow halos around light sources are gone; the upscaled picture is unchanged.

**@⁠lingbz112** on GitHub · 2026-12-06 02:25 UTC · [original](https://github.com/gamingwithhomie/larp/pull/554) `lingbz112:fix/streamline-fg-camera-ghosting` → `main` · +44 −19 · 1 files · 1 commits · open ### What With frame generation on the Streamline backend, the generated frames ghosted along every object's edge — foliage, vehicle silhouettes, and glow smears around bright light sources — while the upscaled picture itself was clean. ### Cause The frame's Streamline constants told DLSS-G two conflicting things at once: - the motion vectors already carry the camera's motion (`camera_motion_included = true`), and - they also carried real camera motion matrices (`clip_to_prev_clip` / `prev_clip_to_clip`) and a real camera pose. With the camera's motion counted twice, generated frames misplaced objects against the background. The error showed worst at depth discontinuities — exactly at every object's edge. ### Fix `ForStreamline::constants` now gives the constants as Darner gives them (which shows generated frames clean): - the clip-to-clip matrices stay the identity and the camera stands at the origin: the camera's motion is left to the motion vectors that carry it - the projection is built in the same layout from the frame's planes, field of view and render aspect (a far plane past 1e30 treated as infinite) Everything else — jitter, motion vector scale, depth and the flag fields — is unchanged. ### Testing In-game before/after comparison with frame generation on: edge ghosting on foliage and vehicle edges and the glow halos around light sources are gone; the upscaled picture is unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 02:31:18 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/554/head:github-bot/gh-554'
git switch 'github-bot/gh-554'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-554'
git switch 'github-bot/gh-554'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-554'
git switch 'github-bot/gh-554'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-554'
git switch 'main'
git merge --squash 'github-bot/gh-554'
git switch 'main'
git merge --ff-only 'github-bot/gh-554'
git switch 'main'
git merge 'github-bot/gh-554'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.