This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
no_gpu [2021/04/10 15:51] badmin |
no_gpu [2021/04/10 15:59] (current) badmin |
||
---|---|---|---|
Line 4: | Line 4: | ||
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). | 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, either: | + | To run binvox on a headless server instead you can install Xvfb (the X virtual frame buffer). |
- | - install Xvfb (on CentOS, for example: ''yum install xorg-x11-server-Xvfb''), | + | On CentOS, for example: ''yum install xorg-x11-server-Xvfb'' , then start a virtual screen: |
- | then start a virtual screen: | + | |
- | + | ''Xvfb :99 -screen 0 640x480x24 &'' | |
- | <code> | + | |
- | Xvfb :99 -screen 0 640x480x24 & | + | ''setenv DISPLAY :99'' (or, if you're running bash, do: ''export DISPLAY=:99'') |
- | setenv DISPLAY :99 (or, if you're running bash, do: export DISPLAY=:99) | + | |
- | </code> | + | After this you can run binvox. |
- | | + | |
- | 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 [[https://gitlab.freedesktop.org/xorg/xserver/-/issues/192|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. |
- | + | ||
- | - 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) | (thanks to @vineet7kumar for figuring this out) | ||