Skip to content

Fix orbit line jitter when they cross the camera near plane - #414

Merged
Phantomical merged 2 commits into
KSPModdingLibs:masterfrom
Phantomical:fix-vectorline-nearplane-clip
Sep 7, 2026
Merged

Fix orbit line jitter when they cross the camera near plane#414
Phantomical merged 2 commits into
KSPModdingLibs:masterfrom
Phantomical:fix-vectorline-nearplane-clip

Conversation

@Phantomical

Copy link
Copy Markdown
Collaborator

Vectrocity has a bug where floating point precision causes it to occasionally place a point behind the near clip plane when it shouldn't. This results in visible flickering.

We fix this by overriding VectorLine.IntersectAndDoSkip with a version that uses the cached double precision worldToClip matrix. That has enough precision to avoid the issue.

Vectrocity has a bug where floating point precision causes it to
occasionally place a point behind the near clip plane when it shouldn't.
This results in visible flickering.

We fix this by overriding VectorLine.IntersectAndDoSkip with a version
that uses the cached double precision worldToClip matrix. That has
enough precision to avoid the issue.
@Phantomical
Phantomical merged commit 312c73f into KSPModdingLibs:master Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant