This is an old revision of the document!
Normally you'd run binvox on your own PC, where it will use your installed graphics card (unless you are using the “exact voxelization” method).
To run binvox on a headless server instead you can install Xvfb (the X virtual frame buffer).
On CentOS, for example:
yum install xorg-x11-server-Xvfb , then start a virtual screen:
Xvfb :99 -screen 0 640x480x24 &
setenv DISPLAY :99 (or, if you're running bash, do:
After this you can run binvox.
Note: with newer versions of Xvfb and/or Mesa (I still have to figure out where the problem lies) it no longer seems to be possible to use “pbuffers” on a virtual screen, so you won't be able to use the -pb option. (also see this bug report). In this case, it may be that the Xvfb screen has to be large enough to support the size you're voxelizing at, please let me know your experiences with this.
(thanks to @vineet7kumar for figuring this out)