nytimes/rd-blender-docker

Headless rendering?

IAmHughes opened this issue · 2 comments

Hello,

I have a linux server without a display attached. I try running blender -b <file>.blend -a which from the documentation, should run the render in the background. Instead I keep getting the following:

root@blender-test:~# blender -b file.blend -a
Blender 2.91.0 (hash 0f45cab862b8 built 2020-11-25 08:51:08)
found bundled python: /bin/2.91/python
Read blend: /root/file.blend
Unable to open a display
Aborted (core dumped)

Is there a way to run this headless using your container image?

Hi @IAmHughes, thanks for the info 🙇

This might be happening because Blender is defaulting to Eevee which requires OpenGL - can you try running you command with Cycles (similar to the one in the wiki)

It would look something like

blender -b <file>.blend -E CYCLES

Does that work?

That did it, thanks!