zocker160/blender

By zocker160

Updated over 2 years ago

Blender 3D Command Line Render with CUDA support

Image

2.7K

Supported tags

Docker 2.83 LTSDocker 2.93 LTSDocker latest

What is Blender?

Blender is a free and open source 3D animation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing and motion tracking, even video editing and game creation. Advanced users employ Blender’s API for Python scripting to customize the application and write specialized tools; often these are included in Blender’s future releases. Blender is well suited to individuals and small studios who benefit from its unified pipeline and responsive development process.

How to use this image

This image is intended to be used as a command line, render-only node for .blend files. You will need to create the 3D files beforehand using Blender's full GUI or download one from the many Blender file sharing sites like Blend Swap.

The entry point for this image is the blender non-gui command line blender -b. You can use the /data/ directory to mount a volume with source files.

Rendering a single frame

To render a single frame from a blendfile.blend file located in /source/path on the docker host and save the result in the same directory:

$ docker run --rm -v /source/path/:/data/ zocker160/blender /data/blendfile.blend -o /data/frame_### -f 1

important: If you want to use a GPU for rendering, you need to pass the --gpus all argument as well.

This will create a file named frame_001.png in the same directory as the source file, assuming that PNG is the default output format for that file.

Blender Command Line Reference

For additional information on Blender's command line parameters and options please visit the command line reference in the Blender Reference Manual.

Or you can just run: docker run --rm zocker160/blender --help

Dockerfile for Blender

Blender versions are tracked in branches. The master branch will always be mapped to the tag latest.

Please visit the GitHub Page for details.

License

This project is released under the MIT license. Please see the LICENSE file for details.

Note: This is not an official Blender repository.

Docker Pull Command

docker pull zocker160/blender