Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export animations #46

Open
mwestphal opened this issue Nov 12, 2021 · 9 comments
Open

Export animations #46

mwestphal opened this issue Nov 12, 2021 · 9 comments
Labels
type:enhancement New feature or request

Comments

@mwestphal
Copy link
Contributor

Since ffmpeg is included in VTK, we should be able to export animation in h264 or animated gif files.

@mwestphal mwestphal added the type:enhancement New feature or request label Nov 12, 2021
@Meakk
Copy link
Contributor

Meakk commented Jan 17, 2022

Actually, it may be out of scope of f3d.
If someone wants to generate a video, the camera, and the animation frame should be specified through the future libf3d API or via command line arguments, and generate a fixed image, with a script. Then the animation with ffmpeg by combining the images.
Wdyt @mwestphal?

@mwestphal
Copy link
Contributor Author

I agree, but you mean that this should be another application, not F3D ?

@xzhub
Copy link

xzhub commented Jan 18, 2022

By using command line argument to generate a series of images is very slow, it would be nice to have some parameters for f3d to generate a video file directly:

  1. speed of the rotation
  2. maybe some inbuilt fancy camera routes, circling should be one of them.

@mwestphal mwestphal added this to the 2.1.0 milestone Apr 26, 2023
@mwestphal
Copy link
Contributor Author

needs #741 first

@mwestphal mwestphal modified the milestones: 2.1.0, 2.2.0 Jun 18, 2023
@mwestphal mwestphal modified the milestones: 2.2.0, 2.3.0 Sep 17, 2023
@mwestphal mwestphal changed the title Export animations in video file format Export animations Dec 21, 2023
@mwestphal
Copy link
Contributor Author

Supporting writing multiple pngs would already be great

@mwestphal
Copy link
Contributor Author

mwestphal commented Jan 22, 2024

related to #1194 and #10 as well.

@mwestphal mwestphal added workflow:discussion and removed help wanted Please help with this issue! labels Jan 22, 2024
@mwestphal
Copy link
Contributor Author

Here is my idea for this.

With autoplay and output, generate numbered screenshot with manipulating the time based on a new output-fps option.

What do you think @snoyer @Meakk ?

@Meakk
Copy link
Contributor

Meakk commented Jan 22, 2024

I think there are three different use cases:

  1. Animated model with a fixed camera
  2. Fixed model with animated camera path

There could be a third use case with both but I'll omit it for now.

Case 1: We just need the --autoplay argument and find a way to export several files. Maybe we could support things like --output /tmp/export_%t.png and substitute %t with the time step index?

Case 2: Some file formats like glTF and USD support camera animation so specifying --camera-index should support the given camera path. Otherwise, just like we define a fixed camera by default, we could have an option --camera-path=[orbit,zoom_in,whatever] which will define a new animated camera path (having a --fps defaulted to 30 would be useful here too). Then we could use the same %t substitution as in case 1.

@mwestphal
Copy link
Contributor Author

Not sure what you mean, animated camera and animated model is exactly the same code path in F3D.
Creating an animated camera like an orbit would be nice, but this is a different issue.

In any case, the code we are talking about would need autoplay in both cases.

@mwestphal mwestphal removed this from the 2.4.0 milestone Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

3 participants