Skip to content

Conversation

@Ni-g-3l
Copy link
Contributor

@Ni-g-3l Ni-g-3l commented Oct 31, 2025

Describe your changes

This PR allows user to play animation frame by frame

frame_by_frame_anim.mp4

However, it is based on GetTemporalInformation from vtkImporter, so It will works only for native VTK Importer for now.

Attach here a GLTF file with an animation if you want to test.
AnimatedCube.zip

Issue ticket number and link if any

#2559
#2682

Checklist for finalizing the PR

  • I have performed a self-review of my code
  • I have added tests for new features and bugfixes
  • I have added documentation for new features
  • If it is a modifying the libf3d API, I have updated bindings
  • If it is a modifying the .github/workflows/versions.json, I have updated docker_timestamp

Continuous integration

Please write a comment to run CI, eg: \ci fast.
See here for more info.

@Ni-g-3l Ni-g-3l mentioned this pull request Nov 17, 2025
9 tasks
@Ni-g-3l Ni-g-3l changed the title WIP : Feat frame by frame animation WIP : Jump to animation keyframe Dec 4, 2025
Comment on lines +269 to +270
this->Importer->GetTemporalInformation(
currentAnimation, 1 / this->DeltaTime, nbTimeSteps, this->TimeRange, timeSteps);
Copy link
Member

@mwestphal mwestphal Dec 5, 2025

Choose a reason for hiding this comment

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

imo timesteps should only checked once, when we recover the time range

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TimeSteps are computed on the first call to jump_key_frame then store into AnimationTimeStep optional.

If we add some print like this :

image

Here is the result :

image

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I see that, but why not recovering them in PrepareForAnimationIndices ?

Copy link
Member

@mwestphal mwestphal left a comment

Choose a reason for hiding this comment

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

small changes needed

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

You are modifying libf3d public API! ⚠️Please update bindings accordingly⚠️!
You can find them in their respective directories: python, java, webassembly.

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.

2 participants