Skip to content

Don't smooth velocity after WASD input#11858

Merged
Wumpf merged 2 commits into
mainfrom
isse/fix-eye-velocity-after-moving
Nov 12, 2025
Merged

Don't smooth velocity after WASD input#11858
Wumpf merged 2 commits into
mainfrom
isse/fix-eye-velocity-after-moving

Conversation

@IsseW

@IsseW IsseW commented Nov 11, 2025

Copy link
Copy Markdown
Member

Related

What

Stops smoothing down velocity after moving with WASD.

This wasn't written to the blueprint so caused rubber banding that's visible on high speeds.

@IsseW IsseW added 📺 re_viewer affects re_viewer itself include in changelog labels Nov 11, 2025
@github-actions

github-actions Bot commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

Web viewer built successfully.

Result Commit Link Manifest
f755fc3 https://rerun.io/viewer/pr/11858 +nightly +main

View image diff on kitdiff.

Note: This comment is updated whenever you push a commit.

@Wumpf Wumpf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is unfortunately too simplistic: iff the camera position comes from a fallback we want to smooth things out because they can produce jumpy values.
Check for example https://rerun.io/viewer/pr/11858?url=https%3A%2F%2Fapp.rerun.io%2Fversion%2Fnightly%2Fexamples%2Fnuscenes_dataset.rrd which now jumps around a lot

come to think that's actually weird. Shouldn't the smoothed-boundingbox we're using here already do the necessary smoothing? 🤔

also, either way the changed code here could use a comment on why it's important to reset the velocity

@IsseW

IsseW commented Nov 11, 2025

Copy link
Copy Markdown
Member Author

https://rerun.io/viewer?url=https%3A%2F%2Fapp.rerun.io%2Fversion%2Fnightly%2Fexamples%2Fnuscenes_dataset.rrd also jumps around a lot, and I'm pretty sure we are doing the same smoothing as that.

The velocity I set to zero here only affects WASDQE input. Will add a comment though!

@IsseW IsseW added the consider-patch PRs & issues that should be considered to be cherry-picked to a patch release branch. label Nov 12, 2025

@Wumpf Wumpf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh you're right. so either this was already broken & nobody cares or I just missrememberd. either way this should go in this case!

@Wumpf Wumpf merged commit 2b562f8 into main Nov 12, 2025
41 checks passed
@Wumpf Wumpf deleted the isse/fix-eye-velocity-after-moving branch November 12, 2025 10:40
IsseW added a commit that referenced this pull request Nov 12, 2025
@IsseW IsseW removed the consider-patch PRs & issues that should be considered to be cherry-picked to a patch release branch. label Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewer keyboard camera movement jerks backwards

2 participants