1

I auto-generate a sequence of ~100 Wavefront *.obj files with a script which I would like to turn into a stop-motion video.

Requirements

  • Availability of a CLI or API so that the whole process can be automated.
  • Customization of the render scene, e.g. the camera perspective and lighting adjustments.
    Being able to use same settings for all files in a sequence is sufficient.
  • Video output in any reasonably common format

Bonus features

  • Support for a 3D file format supporting colors, e.g. *.(c)off files.
  • Interpolation between the object files.

Available software

0

This answer represents a bit of a convoluted process, but I believe it would work for you and meets a couple of your requirements.

OpenSCAD is a free program that allows for command line interface. OpenSCAD also has a feature involving animation. This particular link is rather limited with respect to useful information, but my search results for "OpenSCAD animation" resulted in too many from which to choose. Most of the other links were far more comprehensive, including one from Instructables.

One complication in this answer is that the files would have to be converted from .OBJ to .STL in order to be imported and processed. I suspect there are CLI programs capable of doing batch conversions to make that portion easier, but I did not research it.

Additionally, the output is going to be one image in .PNG format per frame, which would have to be converted to .GIF or loaded into a video editor to create "standard" video. There's a web site in which this process is explained in a limited manner which involves using ImageMagick convert utility which is a CLI.

animation from OpenSCAD

The animation above is from the linked web site. A number of features of OpenSCAD have been implemented in this example, as the rendered objects are usually single color and not semi-transparent.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.