Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Dockerfile add docker render example Jul 17, 2019
README.md
render.py fix comments Jul 17, 2019
render.supervisor.conf

README.md

dockerRender

The trimesh docker images are configured to use the LLVMpipe software rasterizer and XVFB. Who knew LLVM also solved rasterization, somehow? The advantage of not using a GPU is so you can use it in "normal" cheap cloud instances (i.e. DigitalOcean). It also is WAY easier than configuring a GPU to be usable in a container (CUDA, EGL, etc).

This example will render a PNG of a sphere, probably.

# in this directory build the image with a tag
docker build . -t renderworker

# run the container we just built
# the -v will mount the current directory
# as /output inside the container
docker run -v `pwd`:/output renderworker

It should print a bunch of log messages, and something like rendered bytes: 49803. If you ctl-c to exit the container, you should now see a PNG in the current directory:

mikedh@orbital:dockerRender$ ls
Dockerfile  README.md  render.png  render.py  render.supervisor.conf

It's a sphere!

You can’t perform that action at this time.