[VE] Fix #200 first exported frame captured mid-frame - #213
Merged
Conversation
Wait for end of frame before the capture loop so frame 0 is not rendered pre-LateUpdate with IK reset. Signed-off-by: Lusiocc <252649741+Lusiocc@users.noreply.github.com>
ManlyMarco
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The first frame was captured mid-frame instead of at end of frame. Capture forces a re-render, and at that point FinalIK has reset the skeleton via
SolverManager.Update->FixTransformsand only solves inLateUpdate, so IK characters rendered out of pose (FK is applied inLateUpdateand not reset, so FK-only was fine). Now waits for end of frame once before the capture loop. Since that costs a frame on paths already at end of frame,TimelineCompatibility.Play()moved to after the wait.Motivation and Context
Fixes #200. Reported on HS2, reproduced on KKS.
How Has This Been Tested?
A/B in KKS CharaStudio, same scene and settings (Generate Video on, limit by frames, IK enabled):
mainreproduces it, this branch does not. Timeline-limited exports still start at the first timeline frame.Screenshots (if appropriate):
Types of changes