Skip to content

Fix for single segment trails#6864

Merged
BMagnu merged 3 commits into
scp-fs2open:masterfrom
Baezon:single-segment-trail-fix
Jul 26, 2025
Merged

Fix for single segment trails#6864
BMagnu merged 3 commits into
scp-fs2open:masterfrom
Baezon:single-segment-trail-fix

Conversation

@Baezon

@Baezon Baezon commented Jul 25, 2025

Copy link
Copy Markdown
Member

Handles a previously unhandled case where a single segment trail could be interrupted on both ends at once, not yet finished 'unfurling' from being fired, and also the trail object has died. The math here is a little confusing perhaps... but this involves having the back end's val start at -1.0 and start incrementing right away, rather than waiting at 0.0 to finish unfurling, which gives enough information to reason about the correct alpha, width, uv etc in any state.

@Baezon Baezon added fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d) labels Jul 25, 2025
@Baezon Baezon added this to the Release 25.0 milestone Jul 25, 2025
@BMagnu BMagnu merged commit bfacc16 into scp-fs2open:master Jul 26, 2025
20 checks passed
Kestrellius pushed a commit to Kestrellius/fs2open.github.com that referenced this pull request Jul 26, 2025
* fix single segmen trails when interrupted on both ends

* cleaner case handling

* remove wip stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. graphics A feature or issue related to graphics (2d and 3d)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants