equal
deleted
inserted
replaced
1 #!/usr/bin/python |
1 #!/usr/bin/python |
2 |
2 |
3 # read nff data from standart input and render image to render_nff.png |
3 # Usage: render_nff.py [scene.nff] [output.png] |
4 # see http://tog.acm.org/resources/SPD/ |
4 # reads scene from nff file and render it to PNG file |
5 # cylinders are not implemented |
5 # if no output file name is given, it makes one from input name |
|
6 # reads from stdin by default |
|
7 |
|
8 # see http://tog.acm.org/resources/SPD/ for nff format description |
|
9 # cylinders are currently not implemented |
6 |
10 |
7 from pyrit import * |
11 from pyrit import * |
8 from math import pi |
12 from math import pi |
9 import sys |
13 import sys |
10 |
14 |