Skip to content

constant-text-fade-duration#441

Open
Enorovan wants to merge 4 commits intomasterfrom
constant-text-fade-duration
Open

constant-text-fade-duration#441
Enorovan wants to merge 4 commits intomasterfrom
constant-text-fade-duration

Conversation

@Enorovan
Copy link
Copy Markdown
Member

@Enorovan Enorovan commented Apr 5, 2026

No description provided.

@Enorovan Enorovan linked an issue Apr 5, 2026 that may be closed by this pull request
@Enorovan Enorovan force-pushed the constant-text-fade-duration branch from 49da004 to 4e4c6e4 Compare April 5, 2026 14:09
@Enorovan Enorovan self-assigned this Apr 6, 2026
@Enorovan Enorovan marked this pull request as ready for review April 6, 2026 20:33
@Enorovan Enorovan requested a review from PringlesGang April 6, 2026 20:33
Copy link
Copy Markdown
Member

@PringlesGang PringlesGang left a comment

Choose a reason for hiding this comment

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

Overall structure is quite good

Comment thread src/text/typewritereffect.cpp Outdated
Comment thread src/text/typewritereffect.cpp Outdated
Comment thread src/text/typewritereffect.cpp Outdated
Comment thread src/text/typewritereffect.h Outdated
@Enorovan Enorovan force-pushed the constant-text-fade-duration branch from 4e4c6e4 to 0830b05 Compare April 12, 2026 21:04
@Enorovan Enorovan force-pushed the constant-text-fade-duration branch from 47a4ced to 5a4ac9d Compare April 12, 2026 21:22
Copy link
Copy Markdown
Member

@PringlesGang PringlesGang left a comment

Choose a reason for hiding this comment

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

The glyph start progress should be dependent on TextSpeed, and their end progress should be an offset away from that starting progress depending on TextFadeInDuration and the currently predicted remaining duration of the line, such that it ends TextFadeInDuration seconds after the beginning progress

Comment thread src/text/typewritereffect.cpp Outdated
if (glyphCount == 0 || totalProgress <= 0.0f) return {0.0f, 1.0f};

const size_t parallelBlockGlyphNo = glyph - block.Start;
const float glyphFadeProgress = std::min(TextFadeInDuration, totalProgress);
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.

TextFadeInDuration is in seconds and totalProgress is an arbitrary basis? glyphFadeProgress is completely meaningless like this

Comment thread src/text/typewritereffect.cpp Outdated
Comment thread src/text/typewritereffect.cpp Outdated
@Enorovan Enorovan force-pushed the constant-text-fade-duration branch from 278573b to b64b6e7 Compare April 14, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text fade duration should be constant per character

3 participants