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

Support saving multiple file when using --animation-autoplay and --output #46

Open
mwestphal opened this issue Nov 12, 2021 · 12 comments
Open
Labels
help wanted Please help with this issue! type:enhancement New feature or request

Comments

@mwestphal
Copy link
Contributor

mwestphal commented Nov 12, 2021

When using --animation-autoplay and --output, write multiple png files, and rely on filename templating to writing different 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.

@Meakk Meakk added this to F3D Feb 2, 2024
@mwestphal mwestphal removed this from the 2.4.0 milestone Feb 3, 2024
@mwestphal mwestphal moved this to To do in F3D Feb 10, 2024
@mwestphal
Copy link
Contributor Author

With filename templating in #1194, then this now even more easy to do.

@mwestphal mwestphal added the help wanted Please help with this issue! label Jul 5, 2024
@mwestphal mwestphal changed the title Export animations Add an autoplay and export animations feature Jul 5, 2024
@mwestphal
Copy link
Contributor Author

updated the text of the issue.

@mwestphal
Copy link
Contributor Author

autoplay added in #1065

@mwestphal mwestphal changed the title Add an autoplay and export animations feature Support saving multiple file when using --animation-autoplay and --output Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Please help with this issue! type:enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

3 participants