Skip to content

[VE] Fix #200 first exported frame captured mid-frame - #213

Merged
ManlyMarco merged 1 commit into
IllusionMods:mainfrom
Lusiocc:fix/200-first-frame-pose
Jul 28, 2026
Merged

[VE] Fix #200 first exported frame captured mid-frame#213
ManlyMarco merged 1 commit into
IllusionMods:mainfrom
Lusiocc:fix/200-first-frame-pose

Conversation

@Lusiocc

@Lusiocc Lusiocc commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

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 -> FixTransforms and only solves in LateUpdate, so IK characters rendered out of pose (FK is applied in LateUpdate and 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):
main reproduces it, this branch does not. Timeline-limited exports still start at the first timeline frame.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

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
ManlyMarco merged commit bff60e8 into IllusionMods:main Jul 28, 2026
1 check passed
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.

[VE - HS2] First frame out of sync.

2 participants