Irradiant is a "per-triangle" 3D render engine that outputs .svg
files. It's made to be super fast.
The Utah Teapot as rendered by Irradiant v0.7.3:
This was written for Ubuntu-compatible OSs such as Ubuntu, and Linux Mint.
Generates an animated GIF image and MP4 of the SVG inputted, starting with the background and one triangle for the first frame, then adding one triangle per frame
Irradiant files
Irradiant
ASCII STL files
BASH script to convert ASCII STL files to Irradiant files
- bash
- ffmpeg
- php7.2-cli
- php7.2-cli
- bash
./animate.php [SVG]
Usage: ./irradiant.php [options] > [output.svg]
Example: ./irradiant.php -i cube -z 1 > file.svg
Option | Discription |
---|---|
-b |
background colour; default: #FFF |
-i |
irradiant compliant file for input |
-h |
height of output svg; default: 480 |
-w |
width of ouput svg; default: 640 |
-v |
print version and exit |
-z |
zoom multipier; 1 = 90° view angle |
default: 1.8 2 ≈ 40° |
|
3 ≈ 26° | |
4 ≈ 20° | |
sine( √2 / 2z ) --> degrees / 2 | |
--help |
print this help and exit |
--wireframe |
render wireframe |
./stl2irr.sh [ASCII STL] > [IRRADIANT]