frep_gpu¶
This project was started during my assigment for the Interface and Application Programming week. This is an improved version of the original frep script by professor Gershenfeld.
Download¶
For instructions on installation, please visit the gitlab project page: https://gitlab.fabcloud.org/pub/project/frep_gpu.py
How to use¶
The main purpose of this script is to open a window and automatically update the render with the -r
flag. Optionally, you can save the result to a file with the -o
flag. You can open either .json
files or .py
files, that get executed automatically.
usage: frep_gpu.py [-h] [-d DPI] -i INPUT [-r] [-t TIME] [-o OUTPUT] [-v]
Usage: python frep_gpu.py [options]
optional arguments:
-h, --help show this help message and exit
-d DPI, --dpi DPI [px/inch] dots per inch (default: 100)
-i INPUT, --input INPUT
input file <.json> or <.py>
-r, --reload stay open and auto-reload.
-t TIME, --time TIME seconds to remain open if auto-reload is disabled (<=0
for no limit). (default: 0.5s)
-o OUTPUT, --output OUTPUT
output file (default: none)
-v, --verbose enable verbose
Install¶
sudo pip3 install PyOpenGL PyOpenGL_accelerate sudo apt-get install python3-opengl sudo apt-get install freeglut3 sudo apt-get install libgle3