source: 2013/24/AamosR/asteroid/readme.markdown @ 4075

Revision 4075, 1.4 KB checked in by juiitamm, 8 years ago (diff)

Talletus.

Line 
1# Asteroid rendering shell script
2Inspired on [this tutorial](http://i-simplicity.de/tutorials.html),
3uses [povray](http://povray.org/) to render asteroids. Annoyingly povray
4doesn't do parameters, so hence the shell script. I have only run it on linux.
5
6### Useage:
7export variables or define them right before the call. Defaults are intended
8to be reasonable. It will also output a file which indicates what the
9parameters where.
10
11### Examples:
12
13    sh asteroid.sh
14    size=0.5 sh asteroid.sh
15    lz = -800 sh asteroid.lsh
16
17### Variables:
18
19    w,h:       width and height. (800,800)
20
21    size:      size of asteroid(<0.6 ok for otherwise default) (0.5)
22    x,y,z:     camera position. (17,0,0)
23    angle:     angle of view. (10)
24               (has to be tuned with size and x,y,z)
25   
26    lx,ly,lz:  light source position (500,500,800)
27    to_pov:    .pov file to output.  (/tmp/`date +%s`.pov)
28    to_png:    .png file to output. (/output/`date +%s`.png)
29 
30    version:   povray version. (3.7)
31
32## Caveits
33Things could be better, no terrible shell-script, it is probably possible, but
34difficult, to turn the isosurface into a mesh, and also generate the texture.
35But that is a whole project on itself.
36
37There also some 'lines' sometimes when the 'crackle' that adds the craters
38superimposes two craters.
39
40# 'Extras'
41There is a little shell script to separate alpha from the rest.
42
43## Author
44Jasper den Ouden
45
46## License
47CC0, or public domain, whichever one chooses.
Note: See TracBrowser for help on using the repository browser.