Git Product home page Git Product logo

Comments (9)

Meakk avatar Meakk commented on May 13, 2024

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?

from f3d.

mwestphal avatar mwestphal commented on May 13, 2024

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

from f3d.

xzhub avatar xzhub commented on May 13, 2024

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.

from f3d.

mwestphal avatar mwestphal commented on May 13, 2024

needs #741 first

from f3d.

mwestphal avatar mwestphal commented on May 13, 2024

Supporting writing multiple pngs would already be great

from f3d.

mwestphal avatar mwestphal commented on May 13, 2024

related to #1194 and #10 as well.

from f3d.

mwestphal avatar mwestphal commented on May 13, 2024

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 ?

from f3d.

Meakk avatar Meakk commented on May 13, 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.

from f3d.

mwestphal avatar mwestphal commented on May 13, 2024

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.

from f3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.